mirror of https://github.com/snes9xgit/snes9x.git
win32: set volume in WaveOut
This commit is contained in:
parent
bbc4bd2d9d
commit
761c41ba85
|
@ -70,7 +70,7 @@ bool CWaveOut::SetupSound()
|
||||||
|
|
||||||
void CWaveOut::SetVolume(double volume)
|
void CWaveOut::SetVolume(double volume)
|
||||||
{
|
{
|
||||||
waveOutSetVolume(hWaveOut, 0xffffffff);
|
waveOutSetVolume(hWaveOut, (DWORD)(volume * 0xffffffff));
|
||||||
}
|
}
|
||||||
|
|
||||||
void CWaveOut::BeginPlayback()
|
void CWaveOut::BeginPlayback()
|
||||||
|
|
Loading…
Reference in New Issue