diff options
-rw-r--r-- | engines/kyra/sound_adlib.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/kyra/sound_adlib.cpp b/engines/kyra/sound_adlib.cpp index 0d24238129..4e6a384545 100644 --- a/engines/kyra/sound_adlib.cpp +++ b/engines/kyra/sound_adlib.cpp @@ -1994,7 +1994,8 @@ void SoundAdlibPC::playSoundEffect(uint8 track) { return; soundId &= 0xFF; while ((_driver->callback(16, 0) & 8)) { - _engine->delay(10); + // We call the system delay and not the game delay to avoid concurrency issues. + _engine->_system->delayMillis(10); } if (_sfxPlayingSound != -1) { _driver->callback(10, _sfxPlayingSound, int(1), int(_sfxSecondByteOfSong)); |