mirror of
https://github.com/libretro/FBNeo.git
synced 2024-11-23 17:09:43 +00:00
xaudio2, match directsound volume
This commit is contained in:
parent
0917147231
commit
763bbf81d3
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user