Is it possible to capture the playing audio with Java?

蹲街弑〆低调 提交于 2019-12-11 01:56:20

问题


I was wondering if it's possible to capture playing audio on the audio output hardware with a simple Java program, and then write it to an outputstream for example.

Is it?


回答1:


If your desire is to record the output of all programs to a given audio device using a java app, like audiohijackpro, the short answer is no, this is not possible without native code. It is, in fact, quite difficult to do in any language. As far as I know, no platform makes this easy.

On some environments, there is a workaround, eg, http://cycling74.com/soundflower-landing-page/, but it requires that your end user cooperate.



来源:https://stackoverflow.com/questions/11168465/is-it-possible-to-capture-the-playing-audio-with-java

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