Commit 847d5565 authored by Maarten Lankhorst's avatar Maarten Lankhorst Committed by Alexandre Julliard

dsound: Call waveInUnPrepareHeader and waveInPrepareHeader when submitting new buffer.

parent 3bafbb22
...@@ -439,6 +439,8 @@ DSOUND_capture_callback( ...@@ -439,6 +439,8 @@ DSOUND_capture_callback(
capture_CheckNotify(Moi, 0, 0); capture_CheckNotify(Moi, 0, 0);
} else { } else {
if (This->state == STATE_CAPTURING) { 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)); waveInAddBuffer(hwi, &(This->pwave[index]), sizeof(WAVEHDR));
} else if (This->state == STATE_STOPPING) { } else if (This->state == STATE_STOPPING) {
TRACE("stopping\n"); TRACE("stopping\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment