[英]How to get List of Audio Soundcards and Drivers of PC using Java
如何在Java中獲取PC的聲卡和音頻驅動程序列表。 我當前使用的操作系統是Windows。 如果能在這方面獲得幫助,我將不勝感激。
可能在這里... https://docs.oracle.com/javase/tutorial/sound/accessing.html
Mixer.Info[] infos = AudioSystem.getMixerInfo();
for (int i = 0; i < infos.length; i++) {
Mixer.Info info = infos[i];
System.out.println(String.format("Name [%s], description - [%s]\n", info.getName(), info.getDescription()));
System.out.println(info.getDescription());
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.