xaudio2, match directsound volume

This commit is contained in:
dinkc64 2022-01-23 23:27:21 -05:00
parent 0917147231
commit 763bbf81d3

View File

@ -351,7 +351,7 @@ static int XAudio2SetVolume()
if (nAudVolume == 0) {
nXAudio2Vol = 0.0f;
} else {
nXAudio2Vol = 1.0f - (1.0f * pow(10.0, nAudVolume / -5000.0)) + 0.01f;
nXAudio2Vol = ((double)nAudVolume / 10000) * ((double)nAudVolume / 10000);
}
}