mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2025-01-01 10:04:12 +08:00
12 lines
347 B
C++
12 lines
347 B
C++
|
|
||
|
#include "LoopbackCapture.h"
|
||
|
int recordaudio(int argc, wchar_t *argv[])
|
||
|
{
|
||
|
CLoopbackCapture loopbackCapture;
|
||
|
loopbackCapture.StartCaptureAsync(GetCurrentProcessId(), false, argv[1]);
|
||
|
WaitForSingleObject(
|
||
|
CreateEventW(&allAccess, FALSE, FALSE, argv[2]),
|
||
|
INFINITE);
|
||
|
loopbackCapture.StopCaptureAsync();
|
||
|
return 0;
|
||
|
}
|