dsound: Recalculate 3d buffer on SetVolume.

This commit is contained in:
Maarten Lankhorst 2007-05-30 18:31:21 +02:00 committed by Alexandre Julliard
parent 909ed9937a
commit 13af056628
1 changed files with 3 additions and 0 deletions

View File

@ -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;