Read 4 bytes to wake up GETISPACE.

This commit is contained in:
Marcus Meissner 2001-01-02 20:32:33 +00:00 committed by Alexandre Julliard
parent a983a719ec
commit 7a01b38321
1 changed files with 6 additions and 0 deletions

View File

@ -1710,6 +1710,7 @@ static DWORD CALLBACK widRecorder(LPVOID pmt)
DWORD bytesRead;
audio_buf_info info;
int xs;
LPVOID buffer = HeapAlloc(GetProcessHeap(),
HEAP_ZERO_MEMORY,
@ -1722,6 +1723,11 @@ static DWORD CALLBACK widRecorder(LPVOID pmt)
wwi->dwTotalRecorded = 0;
SetEvent(wwi->hEvent);
/* the soundblaster live needs a micro wake to get its recording started
* (or GETISPACE will have 0 frags all the time)
*/
read(wwi->unixdev,&xs,4);
/* make sleep time to be # of ms to output a fragment */
dwSleepTime = (wwi->dwFragmentSize * 1000) / wwi->format.wf.nAvgBytesPerSec;