Set audio volumes before entering main loop

Fixes an issue where the volumes would be at max before the first wipe
finishes. This is because S_UpdateSounds isn't called during wipes.
This commit is contained in:
Eidolon 2024-10-26 15:46:12 -05:00
parent 8ff2e13c7d
commit 2c0642b3d1

View file

@ -894,6 +894,12 @@ void D_SRB2Loop(void)
because I_FinishUpdate was called afterward
*/
// Make sure audio volume is initialized since S_UpdateSounds won't be called during the
// initial wipe.
S_SetMasterVolume();
S_SetMusicVolume();
S_SetSfxVolume();
for (;;)
{
// capbudget is the minimum precise_t duration of a single loop iteration