[PATCH 2/2] dsound: Use the value from SetVolume when 3D processing is disabled

Andrew Eikum aeikum at codeweavers.com
Wed Dec 28 14:03:25 CST 2016


Signed-off-by: Andrew Eikum <aeikum at codeweavers.com>
---

This fixes Bug 39714, which is a regression caused by a83e8e88ea058.

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

diff --git a/dlls/dsound/sound3d.c b/dlls/dsound/sound3d.c
index 4f071258a2..a3a5b418a0 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;
 	}
-- 
2.11.0




More information about the wine-patches mailing list