add missing Fluidsynth ifdefs

This commit is contained in:
Alug committed 2025-12-04 15:42:31 +01:00
1 parent 334a80cb49
commit cf060499ca
1 file changed
+6
+6
View File
@@ -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)
{