commit c2c3e55b68c15e4952cb38cc46616e14695622e7
Author: Fabian Greffrath <fabian@greffrath.com>
AuthorDate: Fri Mar 15 14:35:54 2019 +0100
Commit: Fabian Greffrath <fabian@greffrath.com>
CommitDate: Fri Mar 15 14:35:59 2019 +0100
sound: call Mix_Init() with MIX_INIT_MID flag depending on SDL2_Mixer version
Turns out this wasn't available before SDL2_Mixer 2.0.2 and is only
available as an enumerated value in later versions.
---
src/i_sdlmusic.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/i_sdlmusic.c b/src/i_sdlmusic.c
index 2e7408d1..133f073a 100644
--- a/src/i_sdlmusic.c
+++ b/src/i_sdlmusic.c
@@ -194,7 +194,7 @@ static boolean I_SDL_InitMusic(void)
}
}
-#ifdef MIX_INIT_MID
+#if SDL_MIXER_VERSION_ATLEAST(2,0,2)
// Initialize SDL_Mixer for MIDI music playback
Mix_Init(MIX_INIT_MID);
#endif