coreaudio: Set mDataByteSize of the buffer to the amount data provided. Greatly helps reduce audio corruption on buffer underflows.

This commit is contained in:
Aric Stewart 2008-02-21 11:15:53 -06:00 committed by Alexandre Julliard
parent 1df00aff39
commit b5511ac6bf
1 changed files with 1 additions and 0 deletions

View File

@ -1579,6 +1579,7 @@ OSStatus CoreAudio_woAudioUnitIOProc(void *inRefCon,
needNotify = 1;
}
}
ioData->mBuffers[0].mDataByteSize = dataProvided;
OSSpinLockUnlock(&wwo->lock);