Module: wine Branch: master Commit: 13af0566282b6d2ee91f192432884c218591470a URL: http://source.winehq.org/git/wine.git/?a=commit;h=13af0566282b6d2ee91f192432...
Author: Maarten Lankhorst m.b.lankhorst@gmail.com Date: Wed May 30 18:31:21 2007 +0200
dsound: Recalculate 3d buffer on SetVolume.
---
dlls/dsound/buffer.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/dsound/buffer.c b/dlls/dsound/buffer.c index 59964ec..2437758 100644 --- a/dlls/dsound/buffer.c +++ b/dlls/dsound/buffer.c @@ -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;