[英]JavaSound detecting microphone getting plugged in or removed
It seems like JavaSound doesn't detect when a USB Microphone is plugged in or removed. 似乎JavaSound无法检测到何时插入或卸下USB麦克风。
If plugged in while my java application is running, its not detected. 如果在我的Java应用程序运行时插入,则不会检测到它。 Worse, if unplugged it still thinks its a valid mixer. 更糟糕的是,如果拔下电源,它仍然认为它是有效的混音器。
I have to relaunch the VM. 我必须重新启动虚拟机。 Is there any way around this? 有没有办法解决? I'm running Java 1.6.0_24 on Windows 7. 我在Windows 7上运行Java 1.6.0_24。
According to this post . 根据这个帖子 。 The same problem appears to exist on OS X. Is this a limitation of JavaSound OS X上似乎存在相同的问题。这是JavaSound的限制吗?
我已经在此处描述了用于纯麦克风检测的解决方案: 连接麦克风后的Java声音刷新线列表不幸的是,仍然存在数据线保持不一致状态的问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.