fix undefined reference if Fluidsynth is not found

This commit is contained in:
Roman Fomin 2024-03-03 09:38:10 +07:00
parent aa10fcc17d
commit b42ecbcd37

View File

@ -253,10 +253,12 @@ static void I_OAL_SetMusicVolume(int volume)
{ {
gain *= (ALfloat)opl_gain / 100.0f; gain *= (ALfloat)opl_gain / 100.0f;
} }
#if defined(HAVE_FLUIDSYNTH)
else if (active_module == &stream_fl_module) else if (active_module == &stream_fl_module)
{ {
gain *= (ALfloat)mus_gain / 100.0f; gain *= (ALfloat)mus_gain / 100.0f;
} }
#endif
alSourcef(player.source, AL_GAIN, gain); alSourcef(player.source, AL_GAIN, gain);
} }