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

Method SetValues

Source/Sound/threaded_sound_wrapper.cpp:210–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

208}
209
210void ThreadedSoundDataBridge::SetValues(wrapper_sound_handle wsh, const char* name, const char* type) {
211 mutex.lock();
212 if (data_copy_map.find(wsh) != data_copy_map.end()) {
213 SoundInstanceDataCopy& d = data_copy_map[wsh];
214 strscpy(d.name, name, SoundInstanceDataCopy::NAME_SIZE);
215 strscpy(d.type, type, SoundInstanceDataCopy::TYPE_SIZE);
216 }
217 mutex.unlock();
218}
219
220void ThreadedSoundDataBridge::SetIdentifier(wrapper_sound_handle wsh, const char* id) {
221 mutex.lock();

Callers 2

PlayMethod · 0.80
PlayGroupMethod · 0.80

Calls 5

strscpyFunction · 0.85
lockMethod · 0.45
findMethod · 0.45
endMethod · 0.45
unlockMethod · 0.45

Tested by

no test coverage detected