[Scummvm-cvs-logs] SF.net SVN: scummvm: [32934] scummvm/branches/gsoc2008-rtl/engines/lure/ sound.cpp
cpage88 at users.sourceforge.net
cpage88 at users.sourceforge.net
Mon Jul 7 05:30:34 CEST 2008
Revision: 32934
http://scummvm.svn.sourceforge.net/scummvm/?rev=32934&view=rev
Author: cpage88
Date: 2008-07-06 20:30:34 -0700 (Sun, 06 Jul 2008)
Log Message:
-----------
LURE: Made sure to lock _soundMutex in syncSounds()
Modified Paths:
--------------
scummvm/branches/gsoc2008-rtl/engines/lure/sound.cpp
Modified: scummvm/branches/gsoc2008-rtl/engines/lure/sound.cpp
===================================================================
--- scummvm/branches/gsoc2008-rtl/engines/lure/sound.cpp 2008-07-06 23:42:29 UTC (rev 32933)
+++ scummvm/branches/gsoc2008-rtl/engines/lure/sound.cpp 2008-07-07 03:30:34 UTC (rev 32934)
@@ -285,16 +285,17 @@
// 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) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list