aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorTobias Gunkel2011-12-26 13:54:53 +0100
committerTobias Gunkel2012-02-11 08:02:23 +0100
commit2acd5a823984eccd341b4528523016f9cd539999 (patch)
treef89abb7caf6dd8c8c87deb98b81095cbce3f857d /engines
parentedc52497726139498bb68e3b3334a792b3602ede (diff)
downloadscummvm-rg350-2acd5a823984eccd341b4528523016f9cd539999.tar.gz
scummvm-rg350-2acd5a823984eccd341b4528523016f9cd539999.tar.bz2
scummvm-rg350-2acd5a823984eccd341b4528523016f9cd539999.zip
SCUMM: Fix sound playback if fast-mode is on
Sounds are played that fast in fast-mode that the queue gets stuck. This is just a workaround and only fixes the symptoms. Check the queue handling for a correct fix.
Diffstat (limited to 'engines')
-rw-r--r--engines/scumm/actor.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/scumm/actor.cpp b/engines/scumm/actor.cpp
index eb23c30ebe..4a92d6d81a 100644
--- a/engines/scumm/actor.cpp
+++ b/engines/scumm/actor.cpp
@@ -1355,7 +1355,10 @@ void ScummEngine::playActorSounds() {
} else {
sound = _actors[i]->_sound[0];
}
- _sound->addSoundToQueue(sound);
+ // fast mode will flood the queue with walk sounds
+ if (!_fastMode) {
+ _sound->addSoundToQueue(sound);
+ }
for (j = 1; j < _numActors; j++) {
_actors[j]->_cost.soundCounter = 0;
}