How can I get the list of Soundcards and Audio Drivers of PC in java. OS, I am currently using is Windows. I would be grateful if I could get some assistance in this regards.
Asked
Active
Viewed 458 times
0
-
Java doesn't provide a way to get low level OS details like this without using something like JNI. The Java sound API has `AudioSystem.getMixerInfo` which lists the Java sounds mixers that are available. – greg-449 Dec 06 '17 at 10:21
-
@greg-449 is there any opensource java API which could help me achieve the desired manipulation? – Ahmad Shoaib Dec 06 '17 at 19:11
-
I don't use Windows so I don't know what might be available. – greg-449 Dec 06 '17 at 20:14
-
See also the `MediaTypes` code on [this answer](https://stackoverflow.com/a/7616206/418556). – Andrew Thompson Dec 07 '17 at 04:10
1 Answers
0
May be here... 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());
}

Ivanushka
- 1
- 2