From cf060499ca75eafe8d52bd9af43e381fa9fcc6e4 Mon Sep 17 00:00:00 2001 From: Alug Date: Thu, 4 Dec 2025 15:39:57 +0100 Subject: [PATCH] add missing Fluidsynth ifdefs --- src/sdl/sdl_sound.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/sdl/sdl_sound.c b/src/sdl/sdl_sound.c index 183fa4ee4..6d39fddfa 100644 --- a/src/sdl/sdl_sound.c +++ b/src/sdl/sdl_sound.c @@ -230,6 +230,7 @@ static float *AdjustPitch(float *in, int size, int channels, float pitch) return out; } +#ifdef HAVE_FLUIDSYNTH static int HandleMIDIEvent(void *data, fluid_midi_event_t *event) { SDL_LockAudioStream(audio_stream); @@ -237,6 +238,7 @@ static int HandleMIDIEvent(void *data, fluid_midi_event_t *event) SDL_UnlockAudioStream(audio_stream); return fluid_synth_handle_midi_event(data, event); } +#endif static void MusicCallback(void *userdata, SDL_AudioStream *stream, int additional_amount, int total_amount) { @@ -1093,6 +1095,7 @@ void I_SetSfxVolume(UINT8 volume) /// Music System /// ------------------------ +#ifdef HAVE_FLUIDSYNTH static void LogFluidMessage(int level, const char *message, void *data) { (void)data; @@ -1107,6 +1110,7 @@ static void LogFluidMessage(int level, const char *message, void *data) break; } } +#endif void I_InitMusic(void) { @@ -1191,6 +1195,7 @@ boolean I_SongPaused(void) /// Music Effects /// ------------------------ +#ifdef HAVE_FLUIDSYNTH static void SyncMIDI(void) { synth_wait = true; @@ -1203,6 +1208,7 @@ static void SyncMIDI(void) return; } } +#endif boolean I_SetSongSpeed(float speed) {