win32: set volume in WaveOut

This commit is contained in:
OV2 2019-02-12 17:40:19 +01:00
parent bbc4bd2d9d
commit 761c41ba85
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ bool CWaveOut::SetupSound()
void CWaveOut::SetVolume(double volume)
{
waveOutSetVolume(hWaveOut, 0xffffffff);
waveOutSetVolume(hWaveOut, (DWORD)(volume * 0xffffffff));
}
void CWaveOut::BeginPlayback()