From 5244a7dd83555d0c8275182518f714231684e31c Mon Sep 17 00:00:00 2001 From: Zachary Hall Date: Thu, 12 Dec 2024 10:43:42 -0800 Subject: [PATCH] Set default gain for Fluidsynth to a value more in-line with most audio files --- backends/playback/fluidsynth/fluidsynth_backend.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backends/playback/fluidsynth/fluidsynth_backend.cpp b/backends/playback/fluidsynth/fluidsynth_backend.cpp index 2266312..5b25c57 100644 --- a/backends/playback/fluidsynth/fluidsynth_backend.cpp +++ b/backends/playback/fluidsynth/fluidsynth_backend.cpp @@ -62,6 +62,7 @@ void FluidSynthBackend::load(const char *filename) { File *file = open_file(filename); settings = new_fluid_settings(); fluid_settings_setnum(settings, "synth.sample-rate", 96000.0); + fluid_settings_setnum(settings, "synth.gain", 0.5); fluid_settings_foreach(settings, (void*)this, &fluidsynth_get_property_list_wrapper); synth = new_fluid_synth(settings); player = new_fluid_player(synth); @@ -179,4 +180,4 @@ void FluidSynthBackend::reset_fluidsynth_property(std::string path) { } } break; } -} \ No newline at end of file +}