ref: 3b9503da9b5f5788e4fc430a3972af0099a8448c
parent: 88fe15083f4d55936c6d7708e35d65facd601a5c
author: ceski <[email protected]>
date: Tue Sep 27 08:34:29 EDT 2022
Adjust music volume to prevent clipping and match midiOutSetVolume curve (#1508) * Adjust music volume slider to match vanilla Doom * Prevent music volume clipping * Adjust native MIDI volume slider curve to match midiOutSetVolume
--- a/src/i_winmusic.c
+++ b/src/i_winmusic.c
@@ -471,7 +471,7 @@
void I_WIN_SetMusicVolume(int volume)
{
- volume_factor = (float)volume / 127;
+ volume_factor = sqrt((float)volume / 120);
UpdateVolume();
}