aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2012-02-09 11:29:57 +0200
committerEugene Sandulenko2012-02-09 11:31:09 +0200
commit22ea849cad14ece7686a95edbb5464a25f1cca14 (patch)
treedc6a4da3f73ba14df03a99769ffc6721ed487d96
parent030e155eeb7f82dc89315dbefa43e09a411c6110 (diff)
downloadscummvm-rg350-22ea849cad14ece7686a95edbb5464a25f1cca14.tar.gz
scummvm-rg350-22ea849cad14ece7686a95edbb5464a25f1cca14.tar.bz2
scummvm-rg350-22ea849cad14ece7686a95edbb5464a25f1cca14.zip
MT32: Hooked up ScummVM MIDI gain
-rw-r--r--audio/softsynth/mt32.cpp5
1 files changed, 5 insertions, 0 deletions
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)