aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/sound/soundcmd.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2010-11-25 16:09:45 +0000
committerFilippos Karapetis2010-11-25 16:09:45 +0000
commit601494cad4968ac2246a0c0820bfd9f01ec249ad (patch)
treebcdc4ed659d3296887cf4d066284334b5de70f07 /engines/sci/sound/soundcmd.cpp
parent16006c78f5e64bbc7f012d1bf6c4a43bbe17ae31 (diff)
downloadscummvm-rg350-601494cad4968ac2246a0c0820bfd9f01ec249ad.tar.gz
scummvm-rg350-601494cad4968ac2246a0c0820bfd9f01ec249ad.tar.bz2
scummvm-rg350-601494cad4968ac2246a0c0820bfd9f01ec249ad.zip
SCI: implemented reverb handling and related functionality
svn-id: r54478
Diffstat (limited to 'engines/sci/sound/soundcmd.cpp')
-rw-r--r--engines/sci/sound/soundcmd.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/sci/sound/soundcmd.cpp b/engines/sci/sound/soundcmd.cpp
index 3592f736ea..863fe6c33a 100644
--- a/engines/sci/sound/soundcmd.cpp
+++ b/engines/sci/sound/soundcmd.cpp
@@ -75,6 +75,7 @@ void SoundCommandParser::processInitSound(reg_t obj) {
newSound->priority = readSelectorValue(_segMan, obj, SELECTOR(pri)) & 0xFF;
if (_soundVersion >= SCI_VERSION_1_EARLY)
newSound->volume = CLIP<int>(readSelectorValue(_segMan, obj, SELECTOR(vol)), 0, MUSIC_VOLUME_MAX);
+ newSound->reverb = -1; // initialize to SCI invalid, it'll be set correctly in soundInitSnd() below
debugC(2, kDebugLevelSound, "kDoSound(init): %04x:%04x number %d, loop %d, prio %d, vol %d", PRINT_REG(obj),
resourceId, newSound->loop, newSound->priority, newSound->volume);