Make Audio system pause sound thread safe.

Close #2411
This commit is contained in:
Y-way 2019-01-12 11:28:32 +08:00 committed by Yao Wei Tjong 姚伟忠
parent a476f0c401
commit 32a4a50472
No known key found for this signature in database
GPG Key ID: 8C8F45FBA88EEDC6

View File

@ -169,6 +169,7 @@ void Audio::SetMasterGain(const String& type, float gain)
void Audio::PauseSoundType(const String& type)
{
MutexLock lock(audioMutex_);
pausedSoundTypes_.Insert(type);
}