| 208 | } |
| 209 | |
| 210 | void 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 | |
| 220 | void ThreadedSoundDataBridge::SetIdentifier(wrapper_sound_handle wsh, const char* id) { |
| 221 | mutex.lock(); |