FAQ Database Discussion Community

WASAPI Loopback: Save wave file

I want to record the system's audio output using WASAPI and then saving it to a .wav file. So far I've followed these guides on WASAPI: https://msdn.microsoft.com/en-us/library/windows/desktop/dd316551%28v=vs.85%29.aspx https://msdn.microsoft.com/en-us/library/windows/desktop/dd370800%28v=vs.85%29.aspx I get the buffer data using audioCaptureClient->GetBuffer(&data, &numFramesAvailable, &flags, NULL, NULL); then, I'm processing this data, by just writing it at the...