From b42ecbcd37ceeb514963e002878a8f46ae8b0c07 Mon Sep 17 00:00:00 2001 From: Roman Fomin Date: Sun, 3 Mar 2024 09:38:10 +0700 Subject: [PATCH] fix undefined reference if Fluidsynth is not found --- src/i_oalmusic.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/i_oalmusic.c b/src/i_oalmusic.c index 9c421bb4..e175e967 100644 --- a/src/i_oalmusic.c +++ b/src/i_oalmusic.c @@ -253,10 +253,12 @@ static void I_OAL_SetMusicVolume(int volume) { gain *= (ALfloat)opl_gain / 100.0f; } +#if defined(HAVE_FLUIDSYNTH) else if (active_module == &stream_fl_module) { gain *= (ALfloat)mus_gain / 100.0f; } +#endif alSourcef(player.source, AL_GAIN, gain); }