Maarten Lankhorst : dsound: Call waveInUnPrepareHeader and waveInPrepareHeader when submitting new buffer .
Alexandre Julliard
julliard at winehq.org
Mon Oct 1 07:55:01 CDT 2007
Module: wine
Branch: master
Commit: 847d5565fc4c78c2b127d861a046478a86b5c1cc
URL: http://source.winehq.org/git/wine.git/?a=commit;h=847d5565fc4c78c2b127d861a046478a86b5c1cc
Author: Maarten Lankhorst <maarten at codeweavers.com>
Date: Mon Oct 1 09:14:03 2007 +0200
dsound: Call waveInUnPrepareHeader and waveInPrepareHeader when submitting new buffer.
---
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 a949673..f0b230d 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");
More information about the wine-cvs
mailing list