From 77362c45cc0d6b1371f7145daaef6a1c6dd66a82 Mon Sep 17 00:00:00 2001
From: Steel Titanium <steeltitanium1@gmail.com>
Date: Sun, 3 Jun 2018 18:15:20 -0400
Subject: [PATCH] Fix pausing on gme

---
 src/sdl/mixer_sound.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/src/sdl/mixer_sound.c b/src/sdl/mixer_sound.c
index 7183245918..18670649e6 100644
--- a/src/sdl/mixer_sound.c
+++ b/src/sdl/mixer_sound.c
@@ -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();
 }
 
-- 
GitLab