mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-20 16:59:06 +00:00
Lock mutex in playSoundEffect, should help threading safeness of the code.
svn-id: r31469
This commit is contained in:
parent
c13f2a73a3
commit
1bdc515880
@ -443,6 +443,8 @@ void SoundMidiPC::haltTrack() {
|
||||
}
|
||||
|
||||
void SoundMidiPC::playSoundEffect(uint8 track) {
|
||||
Common::StackLock lock(_mutex);
|
||||
|
||||
if (_sfxParser && _sfxEnabled) {
|
||||
_isSfxPlaying = true;
|
||||
_sfxParser->setTrack(track);
|
||||
|
Loading…
Reference in New Issue
Block a user