mirror of
https://github.com/libretro/snes9x.git
synced 2024-11-23 16:29:41 +00:00
win32: WaveOut: Correct volume setting.
This commit is contained in:
parent
35eb5e550b
commit
cf3feb24ac
@ -75,7 +75,8 @@ bool CWaveOut::SetupSound()
|
||||
|
||||
void CWaveOut::SetVolume(double volume)
|
||||
{
|
||||
waveOutSetVolume(hWaveOut, (DWORD)(volume * 0xffffffff));
|
||||
uint32 volumeout = volume * 0xffff;
|
||||
waveOutSetVolume(hWaveOut, volumeout + (volumeout << 16);
|
||||
}
|
||||
|
||||
void CWaveOut::BeginPlayback()
|
||||
|
Loading…
Reference in New Issue
Block a user