ref: c3a7be8768553ba21c7601a4c94898a1e777fce1
parent: fd0c97758ff9aa5fc835fe03ea9f58583a10b988
author: Fabian Greffrath <fabian@greffrath.com>
date: Thu Mar 14 12:43:38 EDT 2019
sound: more elegant solution to undefined MIX_INIT_MID Instead of re-defining MIX_INIT_MID and calling Mix_Init() with empty flags, don't call it at all -- the result is the same.
--- a/src/i_sdlmusic.c
+++ b/src/i_sdlmusic.c
@@ -194,11 +194,10 @@
}
}
+#ifdef MIX_INIT_MID
// Initialize SDL_Mixer for MIDI music playback
-#ifndef MIX_INIT_MID
-#define MIX_INIT_MID 0
-#endif
Mix_Init(MIX_INIT_MID);
+#endif
// Once initialization is complete, the temporary Timidity config
// file can be removed.