mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-09 04:16:34 +00:00
KYRA: (AdLib Driver) - fix queue handling for Eob
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.
This commit is contained in:
parent
2bcae2451a
commit
814c78e84e
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user