aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLittleboy2012-07-16 23:27:43 -0400
committerLittleboy2012-07-16 23:51:32 -0400
commit0181a464eb864e15a02acd3ab7fb700a7cac0007 (patch)
tree170e1366ad83b4ffdd8c37e27ab97629895d47c6
parentbe94a24fd2cf3e89e3976eb52581c5a8a65d81a1 (diff)
downloadscummvm-rg350-0181a464eb864e15a02acd3ab7fb700a7cac0007.tar.gz
scummvm-rg350-0181a464eb864e15a02acd3ab7fb700a7cac0007.tar.bz2
scummvm-rg350-0181a464eb864e15a02acd3ab7fb700a7cac0007.zip
LASTEXPRESS: Use filter 16 as default filter for NIS animations
This makes sure the sound is at the correct volume
-rw-r--r--engines/lastexpress/data/snd.cpp2
-rw-r--r--engines/lastexpress/shared.h3
2 files changed, 3 insertions, 2 deletions
diff --git a/engines/lastexpress/data/snd.cpp b/engines/lastexpress/data/snd.cpp
index 3deb2d6300..51d0815c1e 100644
--- a/engines/lastexpress/data/snd.cpp
+++ b/engines/lastexpress/data/snd.cpp
@@ -526,7 +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);
+ ((LastExpress_ADPCMStream *)adpcm)->setFilterId(16);
// Queue the stream
_as->queueAudioStream(adpcm);
diff --git a/engines/lastexpress/shared.h b/engines/lastexpress/shared.h
index d60a498447..bebd149b9b 100644
--- a/engines/lastexpress/shared.h
+++ b/engines/lastexpress/shared.h
@@ -80,7 +80,8 @@ enum SoundFlag {
kFlagMusic = 0x5000010,
kFlagType3 = 0x6000000,
kFlagLoop = 0x6001008,
- kFlagType9 = 0x7000000
+ kFlagType9 = 0x7000000,
+ kFlagNIS = 0x7002010
};
enum SoundState {