summaryrefslogtreecommitdiff
path: root/games-emulation/shadPS4/files/shadPS4-0.15.0-SDL3-rename.patch
blob: 691df36b320e05c5d3f5466423b6755f69f17959 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Fix a build time bug caused by SDL3 renaming functions
From: https://github.com/Seme30/shadPS4/commit/e00f726be75218201243639b3bea5de77f315191
Upstream Bug: https://github.com/shadps4-emu/shadPS4/issues/4112

--- a/src/core/libraries/np/trophy_ui.cpp
+++ b/src/core/libraries/np/trophy_ui.cpp
@@ -98,7 +98,7 @@
         return;
     }
 
-    MIX_SetMasterGain(mixer, static_cast<float>(Config::getVolumeSlider() / 100.f));
+    MIX_SetMixerGain(mixer, static_cast<float>(Config::getVolumeSlider() / 100.f));
     auto musicPathMp3 = CustomTrophy_Dir / "trophy.mp3";
     auto musicPathWav = CustomTrophy_Dir / "trophy.wav";
 
@@ -112,7 +112,7 @@
         audio =
             MIX_LoadAudio_IO(mixer, SDL_IOFromMem(soundData.data(), soundData.size()), false, true);
         // due to low volume of default sound file
-        MIX_SetMasterGain(mixer, MIX_GetMasterGain(mixer) * 1.3f);
+        MIX_SetMixerGain(mixer, MIX_GetMixerGain(mixer) * 1.3f);
     }
 
     if (!audio) {