Skip to content

Commit

Permalink
Fix previous commit for non-Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
bradharding committed Sep 29, 2024
1 parent 8d6babc commit b8acda0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/i_music.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,17 +153,20 @@ void I_PauseSong(void)
if (!music_initialized)
return;

if (midimusictype && windowsmidi)
{
#if defined(_WIN32)
if (midimusictype && windowsmidi)
I_Windows_PauseSong();
else
Mix_PauseMusic();
#else
if (midimusictype)
{
paused_midi_volume = current_music_volume;
Mix_VolumeMusic(0);
#endif
}
else
Mix_PauseMusic();
#endif
}

void I_ResumeSong(void)
Expand Down

0 comments on commit b8acda0

Please sign in to comment.