Java中如何获取在线音量

发布于 2024-09-06 21:38:48 字数 171 浏览 1 评论 0原文

我想检查我的系统混合器的 Java 音量。

所以我循环遍历所有混频器并创建一条线。是否有可能获得该行当前活动卷的整数?我似乎只找到了对系统音量或线路音量的调整,但没有找到当前的实际音量。

或者我应该尝试录制每个调音台的一小部分并检查音量?

帮助真的很糟糕。

谢谢!

I'd like to check my systemmixers for volume in Java.

So I loop through all mixers and create a line. Is there a possibility to get an integer of the volume currently active on that line? I only seem to find adjustments to the systemvolume or linevolume but not the current actual volume.

Or should I try to record a little part of every mixer and check for volume?

Help is really bad appreciated.

Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

柠檬色的秋千 2024-09-13 21:38:48

您可以从 AudioSystem 获取 Mixer,然后从 Mixer 获取 Line,然后获取所需的 Control(我猜是 FloatControl.Type.VOLUME)。控件有 getValue() 方法。

You can get get a Mixer from the AudioSystem, then get a Line from the Mixer, then get a Control you need (I guess, FloatControl.Type.VOLUME). The Control has getValue() method.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文