mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-22 11:22:18 -04:00
fix undefined reference if Fluidsynth is not found
This commit is contained in:
parent
aa10fcc17d
commit
b42ecbcd37
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user