Module: wine Branch: master Commit: 847d5565fc4c78c2b127d861a046478a86b5c1cc URL: http://source.winehq.org/git/wine.git/?a=commit;h=847d5565fc4c78c2b127d861a0...
Author: Maarten Lankhorst maarten@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");