mirror of
https://github.com/milkdrop2077/MilkDrop3.git
synced 2025-12-01 12:04:52 +00:00
21 lines
568 B
C
21 lines
568 B
C
// loopback-capture.h
|
|
|
|
// call CreateThread on this function
|
|
// feed it the address of a LoopbackCaptureThreadFunctionArguments
|
|
// it will capture via loopback from the IMMDevice
|
|
// and dump output to the HMMIO
|
|
// until the stop event is set
|
|
// any failures will be propagated back via hr
|
|
|
|
struct LoopbackCaptureThreadFunctionArguments {
|
|
IMMDevice *pMMDevice;
|
|
bool bInt16;
|
|
HMMIO hFile;
|
|
HANDLE hStartedEvent;
|
|
HANDLE hStopEvent;
|
|
UINT32 nFrames;
|
|
HRESULT hr;
|
|
};
|
|
|
|
DWORD WINAPI LoopbackCaptureThreadFunction(LPVOID pContext);
|