aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/lure/sound.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/lure/sound.cpp b/engines/lure/sound.cpp
index 94b7455a1f..d59d03f9c3 100644
--- a/engines/lure/sound.cpp
+++ b/engines/lure/sound.cpp
@@ -285,16 +285,17 @@ uint8 SoundManager::descIndexOf(uint8 soundNumber) {
// Used to sync the volume for all channels with the Config Manager
//
void SoundManager::syncSounds(uint8 musicVol, uint8 sfxVol) {
- MusicListIterator i;
-
musicInterface_TidySounds();
+ g_system->lockMutex(_soundMutex);
+ MusicListIterator i;
for (i = _playingSounds.begin(); i != _playingSounds.end(); ++i) {
if ((*i)->isMusic())
(*i)->setVolume(musicVol);
else
(*i)->setVolume(sfxVol);
}
+ g_system->unlockMutex(_soundMutex);
}
SoundDescResource *SoundManager::findSound(uint8 soundNumber) {