mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-06 10:58:01 +00:00
SCI: Initialize global reverb correctly. Fixes bug #3118700 - "SCI KQ5: Assertion in midi.cpp" (regression from r54478)
svn-id: r54481
This commit is contained in:
parent
ebbd504b90
commit
1cf26f67e0
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user