[QUARTZ] Fixed ACM Wrapper

Christian Costa titan.costa at wanadoo.fr
Mon Feb 21 18:06:21 CST 2005


Hi,

Changelog:
Fixed ACM Wrapper.

Christian Costa   titan.costa at wanadoo.fr

-------------- next part --------------
Index: dlls/quartz/acmwrapper.c
===================================================================
RCS file: /home/wine/wine/dlls/quartz/acmwrapper.c,v
retrieving revision 1.3
diff -u -r1.3 acmwrapper.c
--- dlls/quartz/acmwrapper.c	21 Feb 2005 20:37:45 -0000	1.3
+++ dlls/quartz/acmwrapper.c	21 Feb 2005 22:55:44 -0000
@@ -187,7 +187,7 @@
 	This->pWfOut = (WAVEFORMATEX*)outpmt->pbFormat;
 	This->pWfOut->wFormatTag = WAVE_FORMAT_PCM;
 	This->pWfOut->wBitsPerSample = 16;
-	This->pWfOut->nBlockAlign = 1;
+	This->pWfOut->nBlockAlign = 4;
 	This->pWfOut->cbSize = 0;
 	This->pWfOut->nAvgBytesPerSec = This->pWfOut->nChannels * This->pWfOut->nSamplesPerSec
 						* (This->pWfOut->wBitsPerSample/8);
@@ -202,6 +202,9 @@
 	    }
 
 	    TRACE("input buffer size %ld\n", This->max_size);
+
+            /* Update buffer size of media samples in output */
+            ((OutputPin*)This->tf.ppPins[1])->allocProps.cbBuffer = OUTPUT_BUFFER_SIZE;
 	    
             TRACE("Connection accepted\n");
             return S_OK;


More information about the wine-patches mailing list