dsound: Call waveInUnPrepareHeader and waveInPrepareHeader when submitting new buffer.

This commit is contained in:
Maarten Lankhorst 2007-10-01 09:14:03 +02:00 committed by Alexandre Julliard
parent 3bafbb22b8
commit 847d5565fc
1 changed files with 2 additions and 0 deletions

View File

@ -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");