commit 417496cefbfd4f9f99178931e22eebdcd7115645
Author: Michael Day <contact@michaelcday.com>
AuthorDate: Mon Mar 20 11:37:20 2023 -0400
Commit: Michael Day <contact@michaelcday.com>
CommitDate: Tue Mar 21 13:59:22 2023 -0400
Add f specifier to float literals
---
src/i_flmusic.c | 14 +++++++-------
src/setup/sound.c | 14 +++++++-------
2 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/src/i_flmusic.c b/src/i_flmusic.c
index a9e94c57..5f709b24 100644
--- a/src/i_flmusic.c
+++ b/src/i_flmusic.c
@@ -44,17 +44,17 @@ typedef fluid_long_long_t fluid_int_t;
char *fsynth_sf_path = "";
int fsynth_chorus_active = 1;
-float fsynth_chorus_depth = 5.0;
-float fsynth_chorus_level = 0.35;
+float fsynth_chorus_depth = 5.0f;
+float fsynth_chorus_level = 0.35f;
int fsynth_chorus_nr = 3;
-float fsynth_chorus_speed = 0.3;
+float fsynth_chorus_speed = 0.3f;
char *fsynth_midibankselect = "gs";
int fsynth_polyphony = 256;
int fsynth_reverb_active = 1;
-float fsynth_reverb_damp = 0.4;
-float fsynth_reverb_level = 0.15;
-float fsynth_reverb_roomsize = 0.6;
-float fsynth_reverb_width = 4.0;
+float fsynth_reverb_damp = 0.4f;
+float fsynth_reverb_level = 0.15f;
+float fsynth_reverb_roomsize = 0.6f;
+float fsynth_reverb_width = 4.0f;
static fluid_synth_t *synth = NULL;
static fluid_settings_t *settings = NULL;
diff --git a/src/setup/sound.c b/src/setup/sound.c
index c38804bc..e4d11f93 100644
--- a/src/setup/sound.c
+++ b/src/setup/sound.c
@@ -93,17 +93,17 @@ int winmm_chorus_level = -1;
#if HAVE_FLUIDSYNTH
char *fsynth_sf_path = "";
int fsynth_chorus_active = 1;
-float fsynth_chorus_depth = 5.0;
-float fsynth_chorus_level = 0.35;
+float fsynth_chorus_depth = 5.0f;
+float fsynth_chorus_level = 0.35f;
int fsynth_chorus_nr = 3;
-float fsynth_chorus_speed = 0.3;
+float fsynth_chorus_speed = 0.3f;
char *fsynth_midibankselect = "gs";
int fsynth_polyphony = 256;
int fsynth_reverb_active = 1;
-float fsynth_reverb_damp = 0.4;
-float fsynth_reverb_level = 0.15;
-float fsynth_reverb_roomsize = 0.6;
-float fsynth_reverb_width = 4.0;
+float fsynth_reverb_damp = 0.4f;
+float fsynth_reverb_level = 0.15f;
+float fsynth_reverb_roomsize = 0.6f;
+float fsynth_reverb_width = 4.0f;
#endif // HAVE_FLUIDSYNTH
// DOS specific variables: these are unused but should be maintained