Andrew Eikum : dsound: Use the value from SetVolume when 3D processing is disabled.

Alexandre Julliard julliard at winehq.org
Tue Feb 28 03:45:55 CST 2017


Module: wine
Branch: oldstable
Commit: c4049574ec772b0cc67357abd1a29daebf07179b
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=c4049574ec772b0cc67357abd1a29daebf07179b

Author: Andrew Eikum <aeikum at codeweavers.com>
Date:   Wed Dec 28 14:03:25 2016 -0600

dsound: Use the value from SetVolume when 3D processing is disabled.

Signed-off-by: Andrew Eikum <aeikum at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
(cherry picked from commit d961f5ac7e75ccb1a5aac4f20596bf954f2d8500)
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>

---

 dlls/dsound/sound3d.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/dsound/sound3d.c b/dlls/dsound/sound3d.c
index 840ab93..eb01881 100644
--- a/dlls/dsound/sound3d.c
+++ b/dlls/dsound/sound3d.c
@@ -185,6 +185,7 @@ void DSOUND_Calc3DBuffer(IDirectSoundBufferImpl *dsb)
 		default:
 			TRACE("3D processing disabled\n");
 			/* this one is here only to eliminate annoying warning message */
+			dsb->volpan.lVolume = dsb->ds3db_lVolume;
 			DSOUND_RecalcVolPan (&dsb->volpan);
 			return;
 	}




More information about the wine-cvs mailing list