diff options
author | John Novak <jnovak@skedulo.com> | 2022-08-11 09:33:40 +0300 |
---|---|---|
committer | John Novak <jnovak@skedulo.com> | 2022-08-11 09:34:19 +0300 |
commit | 6dda15177427cea213bb2a33b3f5f254de433d68 (patch) | |
tree | 93ccaaccee8dbb723dfb03a394b98c334b7018be | |
parent | bc1e4a831dbef5c4ab81506017e0a5c6eea8331e (diff) |
Restore unity gain for FluidSynthjn/restore-fluidsynth-unity-gain
-rw-r--r-- | src/midi/midi_fluidsynth.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/midi/midi_fluidsynth.cpp b/src/midi/midi_fluidsynth.cpp index 2175d77ba..33ede5143 100644 --- a/src/midi/midi_fluidsynth.cpp +++ b/src/midi/midi_fluidsynth.cpp @@ -270,6 +270,9 @@ bool MidiHandlerFluidsynth::Open([[maybe_unused]] const char *conf) "FluidSynth audio channel instead: MIXER FSYNTH %d", scale_by_percent); + // Set unity gain + fluid_synth_set_gain(fluid_synth.get(), 1.0f); + constexpr int fx_group = -1; // applies setting to all groups // Use a 7th-order (highest) polynomial to generate MIDI channel waveforms |