aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/sound
diff options
context:
space:
mode:
authorSven Hesse2012-06-18 17:04:46 +0200
committerSven Hesse2012-06-18 17:14:04 +0200
commit892ca3a9c57a948254a2779821a24576f82a77d6 (patch)
tree123fdfbe94fb7f967a086747195b3c9576f8269a /engines/gob/sound
parent065e83e44fd16571b251b227c8fb5ffaccbadbed (diff)
downloadscummvm-rg350-892ca3a9c57a948254a2779821a24576f82a77d6.tar.gz
scummvm-rg350-892ca3a9c57a948254a2779821a24576f82a77d6.tar.bz2
scummvm-rg350-892ca3a9c57a948254a2779821a24576f82a77d6.zip
GOB: Don't loop /all/ sounds in Little Red
Just the title music... *cough*
Diffstat (limited to 'engines/gob/sound')
-rw-r--r--engines/gob/sound/soundblaster.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/gob/sound/soundblaster.cpp b/engines/gob/sound/soundblaster.cpp
index 915d744494..19c2346448 100644
--- a/engines/gob/sound/soundblaster.cpp
+++ b/engines/gob/sound/soundblaster.cpp
@@ -49,6 +49,8 @@ void SoundBlaster::stopSound(int16 fadeLength, SoundDesc *sndDesc) {
if (sndDesc && (sndDesc != _curSoundDesc))
return;
+ _compositionRepCount = 0;
+
if (fadeLength <= 0)
_curSoundDesc = 0;
@@ -64,6 +66,7 @@ void SoundBlaster::stopComposition() {
void SoundBlaster::endComposition() {
_compositionPos = -1;
+ _compositionRepCount = 0;
}
void SoundBlaster::nextCompositionPos() {