[DSOUND] capture callback patch

Robert Reif reif at earthlink.net
Tue Mar 15 17:39:54 CST 2005


waveInPrepareHeader and waveInUnprepareHeader are
not really needed because the contents don't change.
-------------- next part --------------
Index: dlls/dsound/capture.c
===================================================================
RCS file: /home/wine/wine/dlls/dsound/capture.c,v
retrieving revision 1.45
diff -u -p -r1.45 capture.c
--- dlls/dsound/capture.c	15 Mar 2005 15:40:36 -0000	1.45
+++ dlls/dsound/capture.c	15 Mar 2005 23:33:46 -0000
@@ -306,7 +306,6 @@ DSOUND_capture_callback(
                 This->read_position = pHdr->dwBytesRecorded;
 		This->state = STATE_CAPTURING;
 	    }
-	    waveInUnprepareHeader(hwi,&(This->pwave[This->index]),sizeof(WAVEHDR));
 	    if (This->capture_buffer->nrofnotifies)
 		SetEvent(This->capture_buffer->notifies[This->index].hEventNotify);
 	    This->index = (This->index + 1) % This->nrofpwaves;
@@ -315,7 +314,6 @@ DSOUND_capture_callback(
 		This->state = STATE_STOPPED;
 	    } else {
 		if (This->state == STATE_CAPTURING) {
-		    waveInPrepareHeader(hwi,&(This->pwave[index]),sizeof(WAVEHDR));
 		    waveInAddBuffer(hwi, &(This->pwave[index]), sizeof(WAVEHDR));
 	        } else if (This->state == STATE_STOPPING) {
 		    TRACE("stopping\n");


More information about the wine-patches mailing list