Read 4 bytes to wake up GETISPACE.
This commit is contained in:
parent
a983a719ec
commit
7a01b38321
|
@ -1710,6 +1710,7 @@ static DWORD CALLBACK widRecorder(LPVOID pmt)
|
||||||
DWORD bytesRead;
|
DWORD bytesRead;
|
||||||
|
|
||||||
audio_buf_info info;
|
audio_buf_info info;
|
||||||
|
int xs;
|
||||||
|
|
||||||
LPVOID buffer = HeapAlloc(GetProcessHeap(),
|
LPVOID buffer = HeapAlloc(GetProcessHeap(),
|
||||||
HEAP_ZERO_MEMORY,
|
HEAP_ZERO_MEMORY,
|
||||||
|
@ -1723,6 +1724,11 @@ static DWORD CALLBACK widRecorder(LPVOID pmt)
|
||||||
|
|
||||||
SetEvent(wwi->hEvent);
|
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 */
|
/* make sleep time to be # of ms to output a fragment */
|
||||||
dwSleepTime = (wwi->dwFragmentSize * 1000) / wwi->format.wf.nAvgBytesPerSec;
|
dwSleepTime = (wwi->dwFragmentSize * 1000) / wwi->format.wf.nAvgBytesPerSec;
|
||||||
TRACE("sleeptime=%ld ms\n", dwSleepTime);
|
TRACE("sleeptime=%ld ms\n", dwSleepTime);
|
||||||
|
|
Loading…
Reference in New Issue