捕获声卡的输出? [英] Capture the soundcard's output?

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

问题描述

我试图让该声卡的输出数据。不幸的是,来自我的在Java声音的API理解,SourceDataLine的不支持读出方法,并且也没有办法来侦听原始数据。我要坚持到Java这一点,而不是C ++,因此,如果任何人知道如何侦听声卡音频输出,将是巨大的。

I'm trying to get the data that the soundcard is outputting. Unfortunately, from my understanding of the Java Sound API, SourceDataLine does not support the read method, and there is no way to listen for raw data. I want to stick to Java for this, rather than C++, so if anyone knows how to listen for audio output on the soundcard that would be great.

非常感谢!

很抱歉,如果这个职位是混乱的,刚刚醒来。

Sorry if this post is confusing, just woke up.

推荐答案

我这个研究了一段时间,仅使用Java声音不会与多个音频卡的可靠性工作的决定执行。

I've researched this a while, and determined any implementation using only java sound will not work with any reliability on multiple audio cards.

有一些解决方案,但。希望这些都能帮助你。

There are a few solutions though. Hopefully one of these helps you.


  1. 忍辱负重,写一些C ++ code,允许在不同的操作系统此功能。

  2. 使用Java的声音从中环回系统的音频输出的虚拟音频录音机适配器捕获音频。

  3. 用电缆,声音输出端口送入音频输入端口创建自己环回。

我建议选择1,如果你正在开发这一个专业的应用程序的安装会更干净。

I recommend option 1 if you're developing this for a professional application as installation will be cleaner.

使用选项2转到如果你很短的时间量,以及你希望花更多的时间与你的用户,或您的用户都精通技术。

Go with option 2 if you've a short amount of time, and you expect to spend more time with your users, or your users are tech savvy.

使用选项3,如果这只是一个爱好,或对客户的一些一次性的项目。

Use option 3 if this is just a hobby, or some one-off project for a client.

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

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