aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLittleboy2012-07-14 14:26:22 -0400
committerLittleboy2012-07-14 14:26:22 -0400
commit13c00d40486201989463d337d5c09720f10a0aeb (patch)
tree28b5292c4901746b8349bb15ca79f0a504961d66
parent0635d99ec74ad431146e14aba4ad07a5f9e7e221 (diff)
downloadscummvm-rg350-13c00d40486201989463d337d5c09720f10a0aeb.tar.gz
scummvm-rg350-13c00d40486201989463d337d5c09720f10a0aeb.tar.bz2
scummvm-rg350-13c00d40486201989463d337d5c09720f10a0aeb.zip
LASTEXPRESS: Fix sound in animated sequences
-rw-r--r--engines/lastexpress/data/snd.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/lastexpress/data/snd.cpp b/engines/lastexpress/data/snd.cpp
index 6d64f6b82c..3deb2d6300 100644
--- a/engines/lastexpress/data/snd.cpp
+++ b/engines/lastexpress/data/snd.cpp
@@ -486,7 +486,7 @@ bool StreamedSound::isFinished() {
}
void StreamedSound::setFilterId(int32 filterId) {
- if (_as == NULL)
+ if (!_as)
return;
((LastExpress_ADPCMStream *)_as)->setFilterId(filterId);
@@ -526,6 +526,7 @@ void AppendableSound::queueBuffer(Common::SeekableReadStream *bufferIn) {
// Setup the ADPCM decoder
uint32 sizeIn = (uint32)bufferIn->size();
Audio::AudioStream *adpcm = makeDecoder(bufferIn, sizeIn);
+ ((LastExpress_ADPCMStream *)adpcm)->setFilterId(1);
// Queue the stream
_as->queueAudioStream(adpcm);