diff --git a/win32/CWaveOut.cpp b/win32/CWaveOut.cpp index 30387c2b..67f562b2 100644 --- a/win32/CWaveOut.cpp +++ b/win32/CWaveOut.cpp @@ -70,7 +70,7 @@ bool CWaveOut::SetupSound() void CWaveOut::SetVolume(double volume) { - waveOutSetVolume(hWaveOut, 0xffffffff); + waveOutSetVolume(hWaveOut, (DWORD)(volume * 0xffffffff)); } void CWaveOut::BeginPlayback()