user390525
user390525

Reputation: 263

Java Sound API - how to get microphone device info?

I watched the sound from microphone recording example and, as I can see it, the output seems doesn't show the currently available microphone device only info; As a fact, there maybe be another (not a build-in) microphone device available if a headset is plugged for example :)

EDIT: In case of linux I have pulse audio and it shows my notebook build-in microphone as "Build-in Audio Analog Stereo" (see image) enter image description here

EDIT For example if I run the applet code in my NetBeans IDE 8.0.1 JDK 1.7 (linux x64) I am not sure I can see my build-in microphone device in the tree (see image) but still I can record audio with Sound API enter image description here

So my question is... how to get currently available input device info like brand (lets say "Logitech" or the native one as "built-in microphone") etc?

Upvotes: 1

Views: 1220

Answers (1)

Andrew Thompson
Andrew Thompson

Reputation: 168795

See the Media example for a tree of media related properties.

See the code that makes it for the sources of the data.

Upvotes: 1

Related Questions