dsound: Call waveInUnPrepareHeader and waveInPrepareHeader when submitting new buffer.
This commit is contained in:
parent
3bafbb22b8
commit
847d5565fc
|
@ -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");
|
||||||
|
|
Loading…
Reference in New Issue