Capture global Audio Output in C++ (Portaudio)

2019-08-06 04:42发布

问题:

I have one question: Is there any possibillity to record the global Windows Output using Portaudio? I have read that you can change the input device to the actual output device but that's not working at all. So is there any other possibillity to record the output sound? I'd like to prefer using Portaudio but I'm not afraid to use other APIs. It should be a cross-platform API.

Best Regards, Dennis

回答1:

I believe that this can be done with WASAPI Loopback Recording

PortAudio has a WASAPI back-end, so in principle you should be able to do it with PortAudio if you target a WASAPI PortAudio device. In practice I have never tried it so I can't guarantee that it will work.