ref: c2c3e55b68c15e4952cb38cc46616e14695622e7
parent: f7e752f3527cdbab73c83f1d31878ec151d53510
author: Fabian Greffrath <fabian@greffrath.com>
date: Fri Mar 15 10:35:54 EDT 2019
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.
--- a/src/i_sdlmusic.c
+++ b/src/i_sdlmusic.c
@@ -194,7 +194,7 @@
}
}
-#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