aboutsummaryrefslogtreecommitdiff
path: root/games/dunelegacy/SDL2.patch
blob: d59da935d8fe98c3c9ed9f3454680b86c253426f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- dunelegacy-0.96.4/src/FileClasses/music/DirectoryPlayer.cpp.orig	2017-11-02 23:35:12.597820783 +0700
+++ dunelegacy-0.96.4/src/FileClasses/music/DirectoryPlayer.cpp	2017-11-02 23:35:30.146839251 +0700
@@ -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() {
--- dunelegacy-0.96.4/src/FileClasses/music/XMIPlayer.cpp.orig	2017-11-02 23:40:31.473154207 +0700
+++ dunelegacy-0.96.4/src/FileClasses/music/XMIPlayer.cpp	2017-11-02 23:40:55.447179102 +0700
@@ -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());
     }
 }