diff options
author | Filippos Karapetis | 2010-11-25 22:14:38 +0000 |
---|---|---|
committer | Filippos Karapetis | 2010-11-25 22:14:38 +0000 |
commit | 1cf26f67e0298ae0f9ced6190c5f7a4e92ee6098 (patch) | |
tree | 9f29d8718b5f1116a63ff995d0727ca026230afa /engines | |
parent | ebbd504b90a85e84532170a0535ece9effd2e907 (diff) | |
download | scummvm-rg350-1cf26f67e0298ae0f9ced6190c5f7a4e92ee6098.tar.gz scummvm-rg350-1cf26f67e0298ae0f9ced6190c5f7a4e92ee6098.tar.bz2 scummvm-rg350-1cf26f67e0298ae0f9ced6190c5f7a4e92ee6098.zip |
SCI: Initialize global reverb correctly. Fixes bug #3118700 - "SCI KQ5: Assertion in midi.cpp" (regression from r54478)
svn-id: r54481
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sci/sound/music.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/sci/sound/music.cpp b/engines/sci/sound/music.cpp index ad6a869ccc..f119c27b8e 100644 --- a/engines/sci/sound/music.cpp +++ b/engines/sci/sound/music.cpp @@ -39,7 +39,7 @@ namespace Sci { SciMusic::SciMusic(SciVersion soundVersion) - : _soundVersion(soundVersion), _soundOn(true), _masterVolume(0), _globalReverb(-1) { + : _soundVersion(soundVersion), _soundOn(true), _masterVolume(0), _globalReverb(0) { // Reserve some space in the playlist, to avoid expensive insertion // operations @@ -116,6 +116,8 @@ void SciMusic::init() { // remapping). _driverFirstChannel = _pMidiDrv->getFirstChannel(); _driverLastChannel = _pMidiDrv->getLastChannel(); + if (getSciVersion() <= SCI_VERSION_0_LATE) + _globalReverb = _pMidiDrv->getReverb(); // Init global reverb for SCI0 } void SciMusic::miditimerCallback(void *p) { |