Skip to content

Commit

Permalink
GOB: Don't loop /all/ sounds in Little Red
Browse files Browse the repository at this point in the history
Just the title music... *cough*
  • Loading branch information
DrMcCoy committed Jun 18, 2012
1 parent 065e83e commit 892ca3a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engines/gob/inter_littlered.cpp
Expand Up @@ -110,9 +110,9 @@ void Inter_LittleRed::oLittleRed_keyFunc(OpFuncParams &params) {
}

void Inter_LittleRed::oLittleRed_playComposition(OpFuncParams &params) {
_vm->_sound->blasterRepeatComposition(-1);

o1_playComposition(params);

_vm->_sound->blasterRepeatComposition(-1);
}

} // End of namespace Gob
3 changes: 3 additions & 0 deletions engines/gob/sound/soundblaster.cpp
Expand Up @@ -49,6 +49,8 @@ void SoundBlaster::stopSound(int16 fadeLength, SoundDesc *sndDesc) {
if (sndDesc && (sndDesc != _curSoundDesc))
return;

_compositionRepCount = 0;

if (fadeLength <= 0)
_curSoundDesc = 0;

Expand All @@ -64,6 +66,7 @@ void SoundBlaster::stopComposition() {

void SoundBlaster::endComposition() {
_compositionPos = -1;
_compositionRepCount = 0;
}

void SoundBlaster::nextCompositionPos() {
Expand Down

0 comments on commit 892ca3a

Please sign in to comment.