Skip to content

Commit

Permalink
Updated fluidsynth chorus and reverb setting limits.
Browse files Browse the repository at this point in the history
  • Loading branch information
RoqueDeicide committed Apr 3, 2024
1 parent 7476a18 commit 69a4315
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions source/zmusic/configuration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;

Expand All @@ -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);
Expand Down

0 comments on commit 69a4315

Please sign in to comment.