是否有可能捕获与Java播放音频? [英] Is it possible to capture the playing audio with Java?

查看:161
本文介绍了是否有可能捕获与Java播放音频?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有可能捕获用一个简单的Java程序的音频输出硬件播放音频,然后将它写入例如一个OutputStream。

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.

是吗?

推荐答案

如果你的愿望是利用一个Java应用程序的所有程序的输出记录到一个给定的音频设备,像audiohijackpro,简单的答案是否定的,这是不是可能没有本地code。这是在事实上,在任何语言做的相当困难。据我所知,没有平台,使这很容易。

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.

在某些环境中,有一个解决方法,例如, http://cycling74.com/soundflower-着陆页/ ,但它要求你的最终用户合作。

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

这篇关于是否有可能捕获与Java播放音频?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆