diff options
author | Eugene Sandulenko | 2012-02-09 11:29:57 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2012-02-09 11:31:09 +0200 |
commit | 22ea849cad14ece7686a95edbb5464a25f1cca14 (patch) | |
tree | dc6a4da3f73ba14df03a99769ffc6721ed487d96 /audio | |
parent | 030e155eeb7f82dc89315dbefa43e09a411c6110 (diff) | |
download | scummvm-rg350-22ea849cad14ece7686a95edbb5464a25f1cca14.tar.gz scummvm-rg350-22ea849cad14ece7686a95edbb5464a25f1cca14.tar.bz2 scummvm-rg350-22ea849cad14ece7686a95edbb5464a25f1cca14.zip |
MT32: Hooked up ScummVM MIDI gain
Diffstat (limited to 'audio')
-rw-r--r-- | audio/softsynth/mt32.cpp | 5 |
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) |