From cca7da5ba1fec174a692dfdb6dbc4805a9da44e2 Mon Sep 17 00:00:00 2001 From: Oystein Eftevaag Date: Wed, 8 Mar 2006 01:38:27 +0000 Subject: The adlib code was calling the Kyra delay() function instead of the system delay, which was causing concurrency problems. svn-id: r21136 --- engines/kyra/sound_adlib.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)); -- cgit v1.2.3