aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/sci/sound/music.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/sci/sound/music.h b/engines/sci/sound/music.h
index a29b6edee2..ec9cbd8506 100644
--- a/engines/sci/sound/music.h
+++ b/engines/sci/sound/music.h
@@ -164,11 +164,13 @@ public:
uint32 soundGetTempo() const { return _dwTempo; }
bool soundIsActive(MusicEntry *pSnd) {
+ Common::StackLock lock(_mutex);
assert(pSnd->pStreamAud != 0);
return _pMixer->isSoundHandleActive(pSnd->hCurrentAud);
}
void updateAudioStreamTicker(MusicEntry *pSnd) {
+ Common::StackLock lock(_mutex);
assert(pSnd->pStreamAud != 0);
pSnd->ticker = (uint16)(_pMixer->getSoundElapsedTime(pSnd->hCurrentAud) * 0.06);
}