Skip to content

Commit

Permalink
KYRA: (AdLib Driver) - fix queue handling for Eob
Browse files Browse the repository at this point in the history
Huge numbers of sound effects get started as soon as a couple of monsters are around. If we start dropping sound when the queue is full, we won't have any sounds in these situations, but we'll get tons of useless warnings instead.
  • Loading branch information
athrxx authored and Johannes Schickel committed Dec 26, 2011
1 parent 2bcae24 commit 814c78e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion engines/kyra/sound_adlib.cpp
Expand Up @@ -545,7 +545,9 @@ void AdLibDriver::queueTrack(int track, int volume) {
if (!trackData)
return;

if (_programQueueEnd == _programQueueStart && _programQueue[_programQueueEnd].data != 0) {
// Don't drop tracks in Eob. The queue is always full there if a couple of monsters are around.
// If we drop the incoming tracks we get no sound effects, but tons of warnings instead.
if (_version >= 3 && _programQueueEnd == _programQueueStart && _programQueue[_programQueueEnd].data != 0) {
warning("AdLibDriver: Program queue full, dropping track %d", track);
return;
}
Expand Down

0 comments on commit 814c78e

Please sign in to comment.