From 83a0b7533874019c0fa6dcaff42ddb8f0df62738 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Sat, 25 Mar 2023 10:01:50 +0300
Subject: [PATCH] music_fluidsynth.c:remove need for (float) cast.
---
src/codecs/music_fluidsynth.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/codecs/music_fluidsynth.c b/src/codecs/music_fluidsynth.c
index 6a27decf..1bbb308a 100644
--- a/src/codecs/music_fluidsynth.c
+++ b/src/codecs/music_fluidsynth.c
@@ -261,7 +261,7 @@ static void FLUIDSYNTH_SetVolume(void *context, int volume)
FLUIDSYNTH_Music *music = (FLUIDSYNTH_Music *)context;
/* FluidSynth's default gain is 0.2. Make 1.0 the maximum gain value to avoid sound overload. */
music->volume = volume;
- fluidsynth.fluid_synth_set_gain(music->synth, (float) (volume * 1.0 / MIX_MAX_VOLUME));
+ fluidsynth.fluid_synth_set_gain(music->synth, volume * 1.0f / MIX_MAX_VOLUME);
}
static int FLUIDSYNTH_GetVolume(void *context)