Capture speaker output

若如初见. 提交于 2019-12-23 16:40:19

问题


I've seen that I can capture the microphone and sound-files with elements in the Windows.Media.Audio namespace. I'm looking to capture the speaker output, though. For example, I click on something and the system sounds the alert sound - I want to be able to capture that.

Is there any way of doing that using elements in Windows.Media.Audio (instead of going more low level into Win32 calls)?


回答1:


Well, even with "low level Win32 calls", you can't do any loopback recording in UWP.

This is traditionally done with WASAPI, but due to the sandboxed execution of universal applications, you can't open any capture streams on audio render devices in WASAPI.


In general, if you dive into COM APIs which have been ported to UWP, you will notice that there have been a lot of restrictions.



来源:https://stackoverflow.com/questions/44924716/capture-speaker-output

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