Fix pausing on gme

This commit is contained in:
Steel Titanium 2018-06-03 18:15:20 -04:00
parent 8e5ac64d7c
commit 77362c45cc

View file

@ -475,12 +475,24 @@ void I_ShutdownMusic(void)
void I_PauseSong(INT32 handle)
{
(void)handle;
#ifdef HAVE_LIBGME
if (gme)
{
Mix_HookMusic(NULL, NULL);
}
#endif
Mix_PauseMusic();
}
void I_ResumeSong(INT32 handle)
{
(void)handle;
#ifdef HAVE_LIBGME
if (gme)
{
Mix_HookMusic(mix_gme, gme);
}
#endif
Mix_ResumeMusic();
}