用java读取声卡的音频输出
有没有办法读取程序/声卡输出的音频?有点像读取 iTunes 或 Firefox 的音频输出。我四处搜寻,找不到任何方法来做到这一点,因为它需要与声卡连接。
任何帮助表示赞赏!
Is there anyway to read the audio outputted by a program/the soundcard? Sort of like, reading the audio output of itunes, or firefox. I've searched around and I can't find any way to do this as it requires interfacing with the soundcard.
Any help is appreciated!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
一旦你将音乐发送到声卡,它将超越java连接到声卡,因为这将是低级编程,所以你将需要做一些内核级编程,这并不是一件容易的事。
但是,即使您进入低级别,我怀疑您是否能够在声卡之后、扬声器之前点击。
您也许能够在声卡之前进行拦截,但这取决于您的操作系统和声卡类型。
Once you send music to a sound card, it will be beyond java to connect to the sound card, as that will be low-level programming, so you will need to do some kernel level programming, which won't be trivial to do.
But, even if you go low-level, I doubt you will be able to tap after the sound card, and before the speaker.
You may be able to intercept before the sound card, but that depends on your OS and your sound card type.