diff options
author | Littleboy | 2012-07-14 14:26:22 -0400 |
---|---|---|
committer | Littleboy | 2012-07-14 14:26:22 -0400 |
commit | 13c00d40486201989463d337d5c09720f10a0aeb (patch) | |
tree | 28b5292c4901746b8349bb15ca79f0a504961d66 /engines | |
parent | 0635d99ec74ad431146e14aba4ad07a5f9e7e221 (diff) | |
download | scummvm-rg350-13c00d40486201989463d337d5c09720f10a0aeb.tar.gz scummvm-rg350-13c00d40486201989463d337d5c09720f10a0aeb.tar.bz2 scummvm-rg350-13c00d40486201989463d337d5c09720f10a0aeb.zip |
LASTEXPRESS: Fix sound in animated sequences
Diffstat (limited to 'engines')
-rw-r--r-- | engines/lastexpress/data/snd.cpp | 3 |
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); |