MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / SetPosition

Method SetPosition

Source/Sound/threaded_sound_wrapper.cpp:226–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

224}
225
226void ThreadedSoundDataBridge::SetPosition(wrapper_sound_handle wsh, const vec3& position) {
227 mutex.lock();
228 if (data_copy_map.find(wsh) != data_copy_map.end()) {
229 data_copy_map[wsh].position = position;
230 }
231 mutex.unlock();
232}
233
234void ThreadedSoundDataBridge::RemoveHandle(wrapper_sound_handle _wsh) {
235 mutex.lock();

Callers 1

ThreadedSoundLoopFunction · 0.45

Calls 7

SetHandleMethod · 0.80
lockMethod · 0.45
findMethod · 0.45
endMethod · 0.45
unlockMethod · 0.45
SetDataMethod · 0.45
QueueMethod · 0.45

Tested by

no test coverage detected