Skip to content

Commit

Permalink
LASTEXPRESS: Fix sound in animated sequences
Browse files Browse the repository at this point in the history
  • Loading branch information
Templier committed Jul 14, 2012
1 parent 0635d99 commit 13c00d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion engines/lastexpress/data/snd.cpp
Expand Up @@ -486,7 +486,7 @@ bool StreamedSound::isFinished() {
}

void StreamedSound::setFilterId(int32 filterId) {
if (_as == NULL)
if (!_as)
return;

((LastExpress_ADPCMStream *)_as)->setFilterId(filterId);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 13c00d4

Please sign in to comment.