aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/sound/midiparser_sci.cpp
diff options
context:
space:
mode:
authorRuud Klaver2016-09-18 21:01:51 +0200
committerColin Snover2017-10-04 23:47:21 -0500
commit6843870af2812bb3471bf1ecbf75636ef5ec6f0b (patch)
treef3d53705e00519181494b4e9d792c709eab24329 /engines/sci/sound/midiparser_sci.cpp
parentcedd9d3c40503ec74575ea133a60c569a57238c4 (diff)
downloadscummvm-rg350-6843870af2812bb3471bf1ecbf75636ef5ec6f0b.tar.gz
scummvm-rg350-6843870af2812bb3471bf1ecbf75636ef5ec6f0b.tar.bz2
scummvm-rg350-6843870af2812bb3471bf1ecbf75636ef5ec6f0b.zip
SCI: Set default MT-32 reverb before each sound
Set the default reverb configuration present in either the MT-32 patch data or MT32.DRV of SCI0 games before playing each sound, as a previously played sound may have changed it. Also, do not perform a general reverb init, since the start of a sound will do that now. Closes gh-1023.
Diffstat (limited to 'engines/sci/sound/midiparser_sci.cpp')
-rw-r--r--engines/sci/sound/midiparser_sci.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/sci/sound/midiparser_sci.cpp b/engines/sci/sound/midiparser_sci.cpp
index bdd0d1b36e..1644eb6956 100644
--- a/engines/sci/sound/midiparser_sci.cpp
+++ b/engines/sci/sound/midiparser_sci.cpp
@@ -392,6 +392,8 @@ void MidiParser_SCI::sendInitCommands() {
// Set initial voice count
if (_pSnd) {
if (_soundVersion <= SCI_VERSION_0_LATE) {
+ static_cast<MidiPlayer *>(_driver)->onNewSound();
+
for (int i = 0; i < 15; ++i) {
byte voiceCount = 0;
if (_channelUsed[i]) {