From 9bbe7d54c03b7362d90fd21b9405c46c557cc820 Mon Sep 17 00:00:00 2001 From: derselbst Date: Thu, 31 Oct 2024 13:57:45 +0100 Subject: [PATCH] Revert synth.gain to its old default value Fixes #1405 --- doc/fluidsettings.xml | 2 +- doc/recent_changes.txt | 1 - src/synth/fluid_synth.c | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/doc/fluidsettings.xml b/doc/fluidsettings.xml index 6b33fab63..84365fcea 100644 --- a/doc/fluidsettings.xml +++ b/doc/fluidsettings.xml @@ -141,7 +141,7 @@ Developers: gain num - 0.6 (since version 2.4.0),
0.2 (2.3.x and older)
+ 0.2 0.0 10.0 diff --git a/doc/recent_changes.txt b/doc/recent_changes.txt index 081039f0d..4254c1b63 100644 --- a/doc/recent_changes.txt +++ b/doc/recent_changes.txt @@ -3,7 +3,6 @@ \page RecentChanges Recent Changes \section NewIn2_4_0 What's new in 2.4.0? - synth.device-id now has a default value of 16 -- synth.gain now has a default value of 0.6 - Default values of reverb and chorus settings have been tuned - fluid_mod_get_transform() and fluid_mod_set_transform() for SoundFont 2.04 compliant modulators diff --git a/src/synth/fluid_synth.c b/src/synth/fluid_synth.c index e05d44376..05a15874b 100644 --- a/src/synth/fluid_synth.c +++ b/src/synth/fluid_synth.c @@ -224,7 +224,7 @@ void fluid_synth_settings(fluid_settings_t *settings) fluid_settings_register_int(settings, "synth.polyphony", 256, 1, 65535, 0); fluid_settings_register_int(settings, "synth.midi-channels", 16, 16, 256, 0); - fluid_settings_register_num(settings, "synth.gain", 0.6, 0.0, 10.0, 0); + fluid_settings_register_num(settings, "synth.gain", 0.2, 0.0, 10.0, 0); fluid_settings_register_int(settings, "synth.audio-channels", 1, 1, 128, 0); fluid_settings_register_int(settings, "synth.audio-groups", 1, 1, 128, 0); fluid_settings_register_int(settings, "synth.effects-channels", 2, 2, 2, 0);