File tree 2 files changed +11
-2
lines changed
2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -439,7 +439,11 @@ static boolean I_OAL_InitMusic(int device)
439
439
return false;
440
440
}
441
441
442
- static int fl_gain , opl_gain ;
442
+ #if defined(HAVE_FLUIDSYNTH )
443
+ static int fl_gain ;
444
+ #endif
445
+
446
+ static int opl_gain ;
443
447
444
448
static void I_OAL_SetMusicVolume (int volume )
445
449
{
@@ -609,7 +613,7 @@ static const char **I_OAL_DeviceList(void)
609
613
610
614
static midiplayertype_t I_OAL_MidiPlayerType (void )
611
615
{
612
- #ifdef HAVE_FLUIDSYNTH
616
+ #if defined ( HAVE_FLUIDSYNTH )
613
617
if (active_module == & stream_fl_module )
614
618
{
615
619
return midiplayer_fluidsynth ;
Original file line number Diff line number Diff line change @@ -2492,13 +2492,15 @@ static void SetMidiPlayerOpl(void)
2492
2492
}
2493
2493
}
2494
2494
2495
+ #if defined(HAVE_FLUIDSYNTH )
2495
2496
static void SetMidiPlayerFluidSynth (void )
2496
2497
{
2497
2498
if (I_MidiPlayerType () == midiplayer_fluidsynth )
2498
2499
{
2499
2500
SetMidiPlayer ();
2500
2501
}
2501
2502
}
2503
+ #endif
2502
2504
2503
2505
static void RestartMusic (void )
2504
2506
{
@@ -2653,7 +2655,10 @@ static setup_menu_t music_settings1[] = {
2653
2655
2654
2656
static void UpdateGainItems (void )
2655
2657
{
2658
+ #if defined (HAVE_FLUIDSYNTH )
2656
2659
DisableItem (auto_gain , music_settings1 , "fl_gain" );
2660
+ #endif
2661
+
2657
2662
DisableItem (auto_gain , music_settings1 , "opl_gain" );
2658
2663
}
2659
2664
You can’t perform that action at this time.
0 commit comments