Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dosbox-staging/dosbox-staging.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Novak <jnovak@skedulo.com>2022-08-11 09:33:40 +0300
committerJohn Novak <jnovak@skedulo.com>2022-08-11 09:34:19 +0300
commit6dda15177427cea213bb2a33b3f5f254de433d68 (patch)
tree93ccaaccee8dbb723dfb03a394b98c334b7018be
parentbc1e4a831dbef5c4ab81506017e0a5c6eea8331e (diff)
Restore unity gain for FluidSynthjn/restore-fluidsynth-unity-gain
-rw-r--r--src/midi/midi_fluidsynth.cpp3
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