在Java中捕获扬声器输出 [英] Capturing speaker output in Java

查看:317
本文介绍了在Java中捕获扬声器输出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Java是它可以捕捉到扬声器输出?是不是被我的程序,而是由其它运行的应用程序生成此输出。可以这样使用Java来完成或将我需要诉诸C / C ++?

Using Java is it possible to capture the speaker output? This output is not being generated by my program but rather by other running applications. Can this be done with Java or will I need to resort to C/C++?

推荐答案

我有一个基于Java的应用程序。即使用 Java的声音的进军流经系统,使这一丝的声音。它的工作以及我自己的(基于Windows)的机器上,但在另一些人彻底失败。

I had a Java based app. that used Java Sound to tap into the sound flowing through the system to make a trace of it. It worked well on my own (Windows based) machine, but failed completely on some others.

已经确定,为了得到它的工作在这些机器上,将采取什么短期的音频回送的软件或硬件(如铅从扬声器出插孔在'麦克风连接插孔)。

It was determined that in order to get it working on those machines, would take nothing short of an audio loop-back in either software or hardware (e.g. connect a lead from the speaker 'out' jack to the microphone 'in' jack).

由于所有我真正想要做的是剧情音乐的痕迹,而我想通怎么玩Java中的目标格式(MP3),它成为必要进一步追求其他的选择。

Since all I really wanted to do was plot the trace for music, and I figured how to play the target format (MP3) in Java, it became unnecessary to pursue the other option further.

(而且我还听说,Java的声音在Mac上。可怕的是断了,但我从来没有仔细地看了看进去。)

(And I also heard that Java Sound on Mac. was horribly broken, but I never looked closely into it.)

这篇关于在Java中捕获扬声器输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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