How can we know if the microphone is functioning using jmf?

Hi everybody,
This code never output "DataSource Not detected" neither the microphone is connected or not.
CaptureDeviceInfo deviceInfo = (CaptureDeviceInfo) CaptureDeviceManager.getDeviceList(new AudioFormat(AudioFormat.LINEAR, 44100, 16, 1)).get(0);
DataSource inSource=Manager.createDataSource(deviceInfo.getLocator());
if(inSource.equals(null)) {System.out.println("DataSource Not detected");   }
why inSource is never null?
how can we notify the user when no data is captured?
thx

I wanted to add that even with this code handling exceptions, exceptions are not displayed even if the microphone is not connected!
CaptureDeviceInfo deviceInfo = (CaptureDeviceInfo) CaptureDeviceManager.getDeviceList(new AudioFormat(AudioFormat.LINEAR, 44100, 16, 1)).get(0);
DataSource inSource = createDataSource(deviceInfo.getLocator());
protected DataSource createDataSource(MediaLocator locator)
try {
try {
return Manager.createDataSource(locator);
catch (NoDataSourceException ex) {
     {System.out.println("NoDataSourceException: "+ex);
//The failure only concens us
return null;
catch (IOException ex) {
     System.out.println("IOException: "+ex);
//The failure only concens us
return null;
finally {
please help if you have an answer

Similar Messages

  • How can I know when the laptop was last used?

    I left my laptop at the office, which is also my parents' house over the weekend. How can I know if someone else had used it while I was gone? Is there a log somewhere I can read or check?

    Console.app and check your browser(s) history. 

  • How can i know if the face time is working on the iPad before i buy it?

    How can i know if the face time is working on the iPad before i buy it?

    I am plan to buy new ipad2 and i want to check before i buy it, if there is facetime or not?
    As far as i know if it is from KSA there is no face time in, but if it from US there is facetime in?
    And i have the serial number.

  • HT4515 how can i know if the number i am calling is busy or i am on waiting

    How can I know if the number I am calling is busy or I am on waiting? Please let me know.

    If you get a busy signal when calling a number, it is busy.

  • How can I know if the Oracle software is  64-bit or 32-bit

    Hi all,
    How can I know if the installed Oracle software is 64-bit or 32-bit.Actually I'm using an oracle database 10.0.2 on a Solaris 10.
    Cheers.

    Dear user11191992,
    Please check below link;
    http://download.oracle.com/docs/cd/E11882_01/server.112/e10820/dynviews_3120.htm#REFRN30296
    Here is for the release number;
    http://download.oracle.com/docs/cd/E11882_01/server.112/e10595/dba004.htm#ADMIN11039
    Another way is to enter the database with;
    # sqlplus / as sysdbaHope That Helps.
    Ogan

  • How can I know about the latest updates / versions which when available for all the CC products, without having to install and check it with the Desktoip Creative Cloud Application ?

    How can I know about the latest updates / versions which when available for all the CC products, without having to install and check it with the Desktoip Creative Cloud Application ?

    Thanks for looking into this Jeff!
    I work with an Inventory module software and is responsible for software detection across several computers. Once an updated version comes up, I update our database with latest software details to get it detected if installed on any machines.
    The problem tracking updates with Desktop Creative Cloud Software are;
    1)We have to have it installed with the CC applications in-order to get the notification of the latest updates and have to check everyday.
    2)Only relates to the latest updates, so in-between we may miss a prior update unknowingly.Hence, the remote machines having those updates may not get  detected with the software version update which would create problem in reporting.
    3)For all CC products, there is no base or previous updates available for installation if we miss one.
    I went through the Adobe Products Update pages [Product updates] which holds good when it comes to Acrobat and Reader software which I follow to track down any newer updates but this is inconsistent when it comes to CC products like in After Effects CC, Dreamweaver CC etc...
    So overall to be very specific, is there any one channel I can follow to get the notifications only for the updates on CC products and then may be I can rely on Desktop Creative Cloud for installation if not available anywhere like in product update pages of Adobe ?
    Regards,
    Subrat

  • Satellite L500D-11J - How can I turn off the microphone?

    Hi,
    I have a similar problem with the microphone. Suddenly it turned on, resonating with the loudspeakers. When skyping this didn't work anymore. I have a SATELLITE PRO L500D-11J. What to do?
    Is the microphone indeed intergrated with the webcam? How can I put of the microphone while keeping the loudspeakers on?

    Hey,
    Theoretically the microphone can be turned off in Volume settings of Windows. Therefore you have to select the input devices and disable it there Thats all! :)
    Furthermore the microphone is a part of the webcam and therefore you can update the webcam driver. Normally the microphone will be turned on if you use the webcam.

  • Money is deducted from my bank account but iTunes show no purchases. How can i know why the amount is deducted ?

    1. Money got deducetd from my account in favor to iTunes store although i purchased nothing.
    2. I checked with iTunes Purchases it confirms that nothing is purchased.
    3. How can i know why the money has been deducted from my sccount ?

    See Here  >  http://support.apple.com/kb/HT3702

  • How can i know if the sync process is done after a bookmark adding or so such and when it is processing , immediately after changes or what?

    how can i know if the sync process is done after a bookmark adding or so such and when it is processing , immediately after changes or what?

    I don't know whether you solve your problem or not! Anyway, I have the same problem. The program hangs when getInputStream is called.
    DataInputStream dis = new DataInputStream(request.getInputStream());
    If you have the answer, please let me know. Thanks!!

  • Hi anybody there who can help me ha..? My phone 5s was stolen 1 month ago..Find my phone is no a big deal, How can i know whether my phone is in use??

    Hi anybody there who can help me ha..? My phone 5s was stolen 1 month ago..Find my phone is no a big deal bcz it seems to be wiped out all data including settings. it might be in use somewhere turning new fresh Gadget.  How can i know whether my phone is in use??

    You would know for a fact if the device is in use, but if you go back to the find my iPhone app in iCloud.com, you can either select to erase it, or place it in lost mode, in which case, once the device makes a connection to the internet, it will automatically go into that mode.

  • How can I turn off the autocomplete/autofill function in Mail?

    How can I turn off the autocomplete / autofill function in Mail (Mail 7.2)? I know how to remove email addresses from the 'Previous recipient' list, but I simply want to deactivate the autocomplete function for email addresses entirely.
    You used to be able to do this via Mail - Preferences - Composing, but I upgraded to Mavericks today, and the option to deactivate the autocomplete funtion for email addresses is no longer there.
    Does anyone know where to find it?
    Thanks in advance for your feedback,
    Tine

    Zloyprep wrote:
    Somehow Escape button started bringing me an autocomplete list in Keynote which is monstrously inconvenient.
    This is rather surprising.
    What you are describing is a feature called "word completion", provided by the Cocoa text engine, and hence used by apps which rely on it, including iWork, TextEdit, and others. When you are typing, or the insertion point is in a suitable position, pressing ⎋, or ⌥⎋, or F5 brings up the word completion list. Of course, it only works if there are suitable words in the list. For instance, if you type "Schad", intending to write "Schadenfreude", you can press ⎋ as much as you wish and nothing will come up. But type "Zeit" and then ⎋, and you'll get "Zeitgeist" sure enough.
    What is surprising is that you describe it as if you had just came across it, whereas it has been available for years (although I believe that originally it was activated only by ⌥⎋). iWork (including Keynote) is a little different, because, in addition to ⎋, ⌥⎋, and F5, word completion is also activated by ⌘⎋.
    I don't know how to turn off this feature, if indeed it can be turned off.
    Usually Escape would make me exit the text box
    Is there any chance you mis-remember? The Keynote shortcut for exiting text editing and selecting the text box is ⌘↩ (command-return).

  • HT2534 how can I logon to the app's store using a different itunes account

    how can I logon to the app's store using a different itunes account?

    You can log out of the currently logged in account on your iPhone by tapping on your id in Settings > iTunes & App Stores and logging out, and you then log in with a different account. But any content downloaded via the currently logged in account will remain tied to that account, and if you use iTunes match, automatic downloads or re-download past purchases for an account then you risk tying the iPhone to that account for 90 days : http://support.apple.com/kb/HT4627

  • How can I back into the main screen without using the activator bottom?

    How can I back into the main screen without using the activator bottom?

    I assume you mean the HOME button. You cannot. The HOME button is the only way to exit an app.

  • How can we find out the disk which is used for a mount point

    How can we find out the disk which is used for a mount point?
    one of our mount point(/u03/oracle/prod) was using high I/O and this was causing slowness in the server.
    I can see a disk operation error in errpt at the same time as below. Wanted to check whether the mount point /u03/oracle/prod is using the disk hdisk31
    $errpt|more
    IDENTIFIER TIMESTAMP T C RESOURCE_NAME DESCRIPTION
    DXB78877 1125032114 T H hdisk31 DISK OPERATION ERROR
    OS version:AIX 6.1
    DB:11.2.0.2

    this is the output for cat /etc/filesystem
    /u02:
            dev             = /dev/fslv00
            vfs             = jfs2
            log             = /dev/loglv00
            mount           = true
            options         = rw
            account         = false
    /u01:
            dev             = /dev/fslv01
            vfs             = jfs2
            log             = /dev/loglv00
            mount           = true
            options         = rw
            account         = false

  • How can i know that the application is written in a correct way???

    Dear sirs...
    it seems a little silly, but assume that i wrote an applicaion, how can i
    1- be sure that its performance is good, i.e. did i designed the application to be fast?
    2- if it is using SSL, how can i make sure the performance is high?
    3- before the applicaion is installed should i use any specific tuning?
    4- should i do some tuning to the database,& as? i know how to install the AS, & DB, and how to make the application work, but i want it to work as good as possible
    thanks for any help & happy new year
    regards

    you need load testing tool for that...
    you can test your application with "Web Performance Trainer".. it supports ssl, multiple users (up to 5000 simultaneous), etc...
    i use it and it is very good... anyway i havent try it with UIX only plain JSP but i think it shoud work with UIX too...
    ofcourse you have to load database with lots of dummy records to have valid results...
    my expirience is that for single standallone oc4j instance on heavy load maximum is 50-100 simultaneous users over ssl aes-256 (but load testing tool, oc4j and db are on the same computer which have only 2 GB of ram, and DB is only light loaded with with several hundred records, and each of those 50-100 concurent users have its own login name, each on its own separate SSL chanel.. so encryption load is really really heavy) on real deplyment system performance should be much much gerater, because DB, AS, and OC4J's should be on diferent machines each...

Maybe you are looking for

  • Using URL's to Display a picture in Crystal 10

    Post Author: Fred Parker CA Forum: General I want to display a photo of an employee above some information about the employee on a Crystal Report. The firm stores the photos in a folder on the firm's website. We can get the URL for each person's phot

  • White space in parm files foils query for dp export

    Hi, The data pump QUERY option does very strange things with extra white space in parameter files. If I have any space or a tab between the table name and the colon e.g. QUERY=UTL_DATA_SYS.LOG_SYSTEM_ERROR :"WHERE 1=2" I get the following error: ORA-

  • Local Web Development Using Spare Mac to View

    Hi Hum, hope I can be clear.... my mission: use old laptop (Tiger) to view web sites in the User/Sites folder on my new laptop (Snow Leopard) via web sharing. Why? Well, it's another screen, it's there and importantly, it represents the majority of v

  • Can i use tracking.vi with as source some pictures i made?

    I want to track patterns in a sequence of pictures or a video file. I found tracking.vi and i like to test it, but i don't know what i should do to run it. It seems i need to connect the picture/video sequence to the interface. how can you do that?

  • Servlet "files" doesn't recognize timeout ?

    Hello folks, I've encountered the following problem: In the IFS I stored some documents in folders where only privileged users can access to. The Webui displays the content of folders als href-links, the link is the path to the document inside the IF