From b31b43efd0e92c8bff5501e95b31d9439642b711 Mon Sep 17 00:00:00 2001 From: RoqueDeicide Date: Wed, 3 Apr 2024 17:16:52 +0400 Subject: [PATCH] Updated fluidsynth chorus and reverb setting limits. --- source/zmusic/configuration.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/source/zmusic/configuration.cpp b/source/zmusic/configuration.cpp index fecb8d2..c4f3fba 100644 --- a/source/zmusic/configuration.cpp +++ b/source/zmusic/configuration.cpp @@ -678,8 +678,8 @@ DLL_EXPORT zmusic_bool ChangeMusicSettingFloat(EFloatConfigKey key, MusInfo* cur case zmusic_fluid_reverb_roomsize: if (value < 0) value = 0; - else if (value > 1.2f) - value = 1.2f; + else if (value > 1.0f) + value = 1.0f; if (currSong != NULL) currSong->ChangeSettingNum("fluidsynth.z.reverb", value); @@ -736,8 +736,8 @@ DLL_EXPORT zmusic_bool ChangeMusicSettingFloat(EFloatConfigKey key, MusInfo* cur return false; case zmusic_fluid_chorus_speed: - if (value < 0.29f) - value = 0.29f; + if (value < 0.1f) + value = 0.1f; else if (value > 5) value = 5; @@ -751,8 +751,8 @@ DLL_EXPORT zmusic_bool ChangeMusicSettingFloat(EFloatConfigKey key, MusInfo* cur case zmusic_fluid_chorus_depth: if (value < 0) value = 0; - else if (value > 21) - value = 21; + else if (value > 256) + value = 256; if (currSong != NULL) currSong->ChangeSettingNum("fluidsynth.z.chorus", value);