RCS file: /cvsroot/scummvm/scummvm/sound/softsynth/fluidsynth.cpp,v
retrieving revision 1.6
diff -u -r1.6 fluidsynth.cpp
|
|
|
114 | 114 | |
115 | 115 | _settings = new_fluid_settings(); |
116 | 116 | |
117 | | // The default gain setting is ridiculously low, but we can't set it |
118 | | // too high either or sound will be clipped. This may need tuning... |
| 117 | // The default gain setting is ridiculously low, at least for the |
| 118 | // SoundFont I tried, but we can't set it too high either or sound will |
| 119 | // be clipped. |
119 | 120 | |
120 | | setNum("synth.gain", 2.1); |
| 121 | double midi_gain = 2.1; |
| 122 | |
| 123 | if (ConfMan.hasKey("midi_gain")) { |
| 124 | midi_gain = strtod(ConfMan.get("midi_gain").c_str(), NULL); |
| 125 | } |
| 126 | |
| 127 | setNum("synth.gain", midi_gain); |
121 | 128 | setNum("synth.sample-rate", _outputRate); |
122 | 129 | |
123 | 130 | _synth = new_fluid_synth(_settings); |