How to get List of Audio Soundcards and Drivers of PC using Java

535 Views Asked by At

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.

1

There are 1 best solutions below

0
On

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());
    }