[Fwd: ]

Eric Pouech Eric.Pouech at wanadoo.fr
Fri Mar 2 15:10:50 CST 2001


patch seems ok (but sent to wrong channel). Just converted the patch to udiff

Chris Jacobson wrote:
> 
> I'm not going through normal channels because I am NOT a Wine user, I
> simply downloaded it out of curiosity to see your DirectX implementation,
> and noticed an obvious code error when browsing DirectSound, in
> DSOUND_Create3DBuffer:
> - Chris Jacobson

A+
-- 
---------------
Eric Pouech (http://perso.wanadoo.fr/eric.pouech/)
"The future will be better tomorrow", Vice President Dan Quayle
-------------- next part --------------
Index: dlls/dsound/dsound_main.c
===================================================================
RCS file: /home/cvs/cvsroot/wine/wine/dlls/dsound/dsound_main.c,v
retrieving revision 1.40
diff -u -r1.40 dsound_main.c
--- dlls/dsound/dsound_main.c	2001/01/13 01:00:00	1.40
+++ dlls/dsound/dsound_main.c	2001/03/02 21:07:01
@@ -603,7 +603,7 @@
 			if (wTbuf == NULL)
 				return DSERR_OUTOFMEMORY;
 			for (i = 0; i < iSize; i++)
-				wTbuf[i] = (dsb->buffer[i] + dsb->buffer[(i * 2) + 1]) / 2;
+				wTbuf[i] = (dsb->buffer[i * 2] + dsb->buffer[(i * 2) + 1]) / 2;
 			wIbuf = wTbuf;
 		} else {
 			iSize = dsb->buflen / 2;
@@ -611,7 +611,7 @@
 			if (bTbuf == NULL)
 				return DSERR_OUTOFMEMORY;
 			for (i = 0; i < iSize; i++)
-				bTbuf[i] = (dsb->buffer[i] + dsb->buffer[(i * 2) + 1]) / 2;
+				bTbuf[i] = (dsb->buffer[i * 2] + dsb->buffer[(i * 2) + 1]) / 2;
 			bIbuf = bTbuf;
 		}
 	} else {


More information about the wine-patches mailing list