File fix-build-with-SDL_mixer-2.0.2.patch of Package dunelegacy
diff -ur dunelegacy-0.96.4.orig/src/FileClasses/music/DirectoryPlayer.cpp dunelegacy-0.96.4/src/FileClasses/music/DirectoryPlayer.cpp
--- dunelegacy-0.96.4.orig/src/FileClasses/music/DirectoryPlayer.cpp 2016-11-20 15:57:02.000000000 +0100
+++ dunelegacy-0.96.4/src/FileClasses/music/DirectoryPlayer.cpp 2018-04-07 20:18:15.596685772 +0200
@@ -61,7 +61,7 @@
music = nullptr;
- Mix_Init(MIX_INIT_FLUIDSYNTH | MIX_INIT_FLAC | MIX_INIT_MP3 | MIX_INIT_OGG);
+ Mix_Init(MIX_INIT_MID | MIX_INIT_FLAC | MIX_INIT_MP3 | MIX_INIT_OGG);
}
DirectoryPlayer::~DirectoryPlayer() {
diff -ur dunelegacy-0.96.4.orig/src/FileClasses/music/XMIPlayer.cpp dunelegacy-0.96.4/src/FileClasses/music/XMIPlayer.cpp
--- dunelegacy-0.96.4.orig/src/FileClasses/music/XMIPlayer.cpp 2016-11-18 00:06:11.000000000 +0100
+++ dunelegacy-0.96.4/src/FileClasses/music/XMIPlayer.cpp 2018-04-07 20:18:15.568685771 +0200
@@ -32,7 +32,7 @@
XMIPlayer::XMIPlayer() : MusicPlayer(settings.audio.playMusic, settings.audio.musicVolume) {
music = nullptr;
- if((Mix_Init(MIX_INIT_FLUIDSYNTH) & MIX_INIT_FLUIDSYNTH) == 0) {
+ if((Mix_Init(MIX_INIT_MID) & MIX_INIT_MID) == 0) {
SDL_Log("XMIPlayer: Failed to init required midi support: %s", SDL_GetError());
}
}