Capture global Audio Output in C++ (Portaudio)

自作多情 提交于 2019-12-11 03:06:35

问题


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.




回答2:


Counting on Ross Bencina's answer ,

plus an internet tip: You need a PortAudio patch to enable WASAPI Loopback:

https://github.com/michaelni/audacity/blob/master/lib-src/portaudio-v19/wasapi-loopback.patch



来源:https://stackoverflow.com/questions/25291097/capture-global-audio-output-in-c-portaudio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!