Skip to content

Commit

Permalink
Respect DISABLE_SDL2MIXER
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeday0 committed Jan 1, 2024
1 parent e5e1f73 commit 04c91a5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/i_sound.c
Original file line number Diff line number Diff line change
Expand Up @@ -419,12 +419,14 @@ void I_SetMusicVolume(int volume)
{
music_module->SetMusicVolume(volume);

#ifndef DISABLE_SDL2MIXER
// [crispy] always broadcast volume changes to SDL. This also covers
// the musicpack module.
if (music_module != &music_sdl_module)
{
music_sdl_module.SetMusicVolume(volume);
}
#endif
}
}

Expand Down

0 comments on commit 04c91a5

Please sign in to comment.