Commit 13af0566 authored by Maarten Lankhorst's avatar Maarten Lankhorst Committed by Alexandre Julliard

dsound: Recalculate 3d buffer on SetVolume.

parent 909ed993
......@@ -221,6 +221,9 @@ static HRESULT WINAPI IDirectSoundBufferImpl_SetVolume(
if (This->dsbd.dwFlags & DSBCAPS_CTRL3D) {
oldVol = This->ds3db_lVolume;
This->ds3db_lVolume = vol;
if (vol != oldVol)
/* recalc 3d volume, which in turn recalcs the pans */
DSOUND_Calc3DBuffer(This);
} else {
oldVol = This->volpan.lVolume;
This->volpan.lVolume = vol;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment