1

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?

Community
  • 1
  • 1
user390525
  • 263
  • 1
  • 2
  • 18

1 Answers1

1

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

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

Community
  • 1
  • 1
Andrew Thompson
  • 168,117
  • 40
  • 217
  • 433
  • Thank you; The applet code is quite interesting; But still I am bit confused of how to get the "Microphone" data as in the tree like "Front Mic ( 2-VIA High Definition...)"? I have notebook a build in microphone but running the code I don't see any microphone info as the Pulse Audio shows for example? I edited my question; So please give me a tip – user390525 Mar 12 '15 at 09:35
  • I am confused. Did you run the code? Did your microphone appear in there? – Andrew Thompson Mar 12 '15 at 09:55
  • I am not sure; So please see the applet screenshot I attach to my question; As I can get it, I don't see my build-in microphone in the tree; Anyways maybe the input device has another identification in case of java? – user390525 Mar 12 '15 at 11:10
  • I am still not sure exactly how to get the microphone device info but maybe I am looking wrong place; Please give me a tip – user390525 Mar 13 '15 at 21:18
  • For example if I use the code http://stackoverflow.com/a/3756179/4336130 I don't see anything similar to "build-in ... analog stereo" so the code doesn't return currently available microphone device info? – user390525 Mar 13 '15 at 22:45
  • I just found the answer as http://stackoverflow.com/a/562434/4336130 the guy says "the Mac OS doesn't produce any interesting results"... I am wondering cause I have linux so maybe it may have same "uninteresting" results? – user390525 Mar 14 '15 at 03:59
  • Linux results [1](http://stackoverflow.com/a/1337032/418556), [2](http://stackoverflow.com/a/563330/418556). – Andrew Thompson Mar 14 '15 at 04:42
  • That's what I am talking about I can see some kind of similar results on my machine (Linux x64) the mixer lines ; But I don't get it how to get info is the "mixers' list" item as microphone is currently available for example to make possible make it selected etc? – user390525 Mar 14 '15 at 07:35