From 6e9fc8e92360509f990cb26a97b37cc09e073db7 Mon Sep 17 00:00:00 2001 From: Misa Date: Tue, 27 Apr 2021 16:59:01 -0700 Subject: [PATCH] Call Mix_VolumeMusic() when playing tracks 0 and 7 This fixes issues where they would be silent for 1 frame due to frame ordering, resulting in a weird-sounding beginning of these tracks due to a lack of attack (in the musical sense). This is similar to the issue where tracks fading in would suddenly be loud for 1 frame, again due to frame ordering. --- desktop_version/src/Music.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/desktop_version/src/Music.cpp b/desktop_version/src/Music.cpp index b3214b3b..283a1812 100644 --- a/desktop_version/src/Music.cpp +++ b/desktop_version/src/Music.cpp @@ -213,6 +213,7 @@ void musicclass::play(int t) else { musicVolume = MIX_MAX_VOLUME; + Mix_VolumeMusic(musicVolume); } } else