[PATCH] dsound: Call waveInUnPrepareHeader and waveInPrepareHeader when submitting new buffer

Maarten Lankhorst maarten at codeweavers.com
Sat Sep 29 13:15:34 CDT 2007


---
 dlls/dsound/capture.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/dsound/capture.c b/dlls/dsound/capture.c
index 20a0b60..bee0b32 100644
--- a/dlls/dsound/capture.c
+++ b/dlls/dsound/capture.c
@@ -439,6 +439,8 @@ DSOUND_capture_callback(
 		capture_CheckNotify(Moi, 0, 0);
 	    } else {
 		if (This->state == STATE_CAPTURING) {
+		    waveInUnprepareHeader(hwi, &(This->pwave[index]), sizeof(WAVEHDR));
+		    waveInPrepareHeader(hwi, &(This->pwave[index]), sizeof(WAVEHDR));
 		    waveInAddBuffer(hwi, &(This->pwave[index]), sizeof(WAVEHDR));
 	        } else if (This->state == STATE_STOPPING) {
 		    TRACE("stopping\n");
-- 
1.5.2.5


--------------000102060606080909090101--



More information about the wine-patches mailing list