From 22ea849cad14ece7686a95edbb5464a25f1cca14 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Thu, 9 Feb 2012 11:29:57 +0200 Subject: MT32: Hooked up ScummVM MIDI gain --- audio/softsynth/mt32.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'audio') diff --git a/audio/softsynth/mt32.cpp b/audio/softsynth/mt32.cpp index c319457ae2..186118262f 100644 --- a/audio/softsynth/mt32.cpp +++ b/audio/softsynth/mt32.cpp @@ -293,6 +293,11 @@ int MidiDriver_MT32::open() { drawMessage(-1, _s("Initializing MT-32 Emulator")); if (!_synth->open(prop)) return MERR_DEVICE_NOT_AVAILABLE; + + double gain = (double)ConfMan.getInt("midi_gain") / 100.0; + _synth->setOutputGain(1.0f * gain); + _synth->setReverbOutputGain(0.68f * gain); + _initializing = false; if (screenFormat.bytesPerPixel > 1) -- cgit v1.2.3