How do I read in audio data from the line in port?

I would like to use the "line in" port to acquire audio signals for processing, however I can't determine which "device" number to use. I've determined that device 1 is my microphone jack but I can't get anything to work for the "line in" jack. Is there an easy way to determine what the device number is for the line in jack?

Try using Device 0, this is the default device, your sound card. Devices, in this case, are the sound card. Unless you have more than one sound card (and I don't know how to determine which is 0 and which is 1 in that case) you should use Device 0. Lines on the sound card are determined by the drivers. All you do is play or record.

Similar Messages

  • How to read an audio file from the disk and play it?

    Do you know who to read an audio file from the hard disk and play it. It's for an application and not an applet. I tried with the Applet.newAudioClip(URL url) thing, but I keep getting a MalformedURLException.
    And is there a way to get the path of the file you are using? Currently I'm doing this:
    File file = new file("randomname");
    string = file.getAbsolutePath();
    file.delete();
    I'm sure there's a better way. And this is not for an applet, just a normal app.

    Below is a class that should be of use to you.
    package com.sound;
    import java.io.File;
    import javax.sound.sampled.AudioFormat;
    import javax.sound.sampled.AudioInputStream;
    import javax.sound.sampled.AudioSystem;
    import javax.sound.sampled.Clip;
    import javax.sound.sampled.DataLine;
    public class SoundPlayer implements Runnable {
         String filename;
         public SoundPlayer(String filename){
              this.filename = filename;
              Thread t = new Thread(this);
              t.start();
         }//SoundPlayer constructor
         public void run(){
              playSound();
         }//run method
         public boolean playSound(){
              try {
                   File file = new File(filename);
                   AudioInputStream stream = AudioSystem.getAudioInputStream(file);
                   AudioFormat     format = stream.getFormat();
                   DataLine.Info info = new DataLine.Info(Clip.class, format);
                   Clip clip = (Clip)AudioSystem.getLine(info);
                   clip.open(stream);
                   clip.start();
                   while (clip.isRunning()) {
                       Thread.sleep(100);
                   clip.close();
              catch (Exception e) {
                  System.err.println("Error in run in SoundPlayer");
                   return false;
              return true;
         }//playSound() method
    }//Class SoundPlayer

  • How do you remove back up data from the memory storage? my storage data states that i have over 80gb of data used for back ups and i dont know why as i use a external hard drive as a time machine .now my 250gb flash storage is nearly full

    how do you remove back up data from the memory storage? my storage data states that i have over 80gb of data used for back ups and i dont know why as i use a external hard drive as a time machine .now my 250gb flash storage is nearly full.. HELP!

    When Time Machine backs up a portable Mac, some of the free space will be used to make local snapshots, which are backup copies of recently deleted files. The space occupied by local snapshots is reported as available by the Finder, and should be considered as such. In the Storage display of System Information, local snapshots are shown as  Backups. The snapshots are automatically deleted when they expire or when free space falls below a certain level. You ordinarily don't need to, and should not, delete local snapshots yourself. If you followed bad advice to disable local snapshots by running a shell command, you may have ended up with a lot of data in the Other category. Ask for instructions in that case.
    See this support article for some simple ways to free up storage space.

  • The logic board on my MacBook Pro has failed. How do I retrieve all my data from the hard drive?

    The logic board on my MacBook Pro has failed. How do I retrieve all my data from the hard drive?

    Remove the drive and put it in an external enclosure. Backup the drive completely. Repartition and format the drive. Replace the drive into the computer. Take the computer in for the logicboard replacement.

  • "Could not get the audio data from the file" error

    Hi
    I get a lot of "Could not get the audio data from the file" errors when opening a project. Sometimes they crash Premiere Pro CC 7.01 (Mac). But if not Premiere works as usual, with the audio.
    I tried to convert the audio files (coming from Audition) from 32 to 16 bit. It worked while opening a project once, but not the following times.
    Where can it come from ?
    Edit: I also get this error when importing audio: "Error: Premiere Pro version 7.0 is not compatible with the Premiere Pro Plug-in version 5.7.4". Maybe it is connected.

    Got it! It was the Smartsound plugin making trouble. Got rid of it and no more errors.

  • How i cen get back deleted data from the bin?

    how i cen get back deleted data from the bin?

    Not once you have put the data in the trash and pressed the button to delete it.
    There may be some hope if you can understand what I am telling you in my first post to you.
    Time machine is too complex to explain in this kind of post but I am giving you five links below which should explain quite a lot.   There are no formal instruction manuals for Time Machine.
    Time Machine Tutorial
    Time Machine 101
    How to back up and restore your files           This in particular
    Time Machine Features
    Apple - Support - Mac OSX v10.5 Leopard Time Machine

  • How can I create an audio CD from the audio only portion of my iMovie?

    Hello, I brought in about 50 min of Digital video into iMovie, I separated (split) the audio from the video, I unlocked the audio, I deleted the video, and now I want to just create an audio CD from the audio that is left.
    Can I do this? and if yes how? If I can not, how can I create an Audio CD from on my G5 off a tape on my digital camcorder?
    Any help would be apprecaited.

    This is how:
    Go to:
    'File'
    'Share'
    'Quicktime'
    'Expert Settings'
    'Audio as AIFF' or pick your brand of compression.
    Drag and drop the resulting file into iTunes.
    Enjoy!
    P.S. - You didn't need to delete the video but I think that'll be okay.

  • How can I read an ID-value from the LMS and insert this into an URL?

    Hi
    Right now I am struggling with a little problem. Hopefully anyone here knows the answer. For the latest course I am building (Captivate 6), it is necessary that at one point the course reads an ID-value from the LMS. After that, this ID should be inserted into an URL.
    To be more precisely: the ID must be read (getValue) from cmi.archive_id and inserted into an URL like that: http://.../archive.php?action=pdf&objectID=ARCHIVE_ID.
    Unfortunately I am more of a designer und less of a javascript-maestro (well...I am a javascript-noob to be precisely), therefore I am pretty clueless how to do that. I tried a simple executed action (run Javascript: cpEIGetValue('cmi.archive_id'); and after that open URL http://.../archive.php?action=pdf&objectID=ARCHIVE_ID), but...well...that didn't work.
    Any ideas?
    Thanks a lot in advance

    Think you'll find help looking at Jim Leichliter's website:
    http://captivatedev.com/
    He has great tutorials about JavaScript and also a widget that allows to enter a variable in URL's
    Lilybiri

  • How could a down-mix APOs receiving multi-channel audio data from the application

    Hello,
        Now I am integrating my DSP algorithm to the APO whichs convert to 7.1 input to stereo output(we call it virtualization), but the endpoint just supports stereo input. My first question is can my APOs receiving a 7.1 input data from
    application when the endpoint only supporting stereo input. The second question is if the scheme is feasible and what should I do.
    Thanks

    Ok so i order to help anyone who is interested.
    The only ironic solution to this problem i found was to use a plugin called xto7 to convert the xml to the old fcp7 format.
    i then imported this into premiere pro.
    this was then able to export an OMF that when imported into logic 10 that was using the correct 6ch mono setting as separate tracks.
    Insane but it works until Apple fixes the incorrect meta data import in FCPX that sets the xml export to the default import that is always surround.
    this is the only way i was able to send stems with all the edit points and fades for the sound editor.
    If you don't have premiere lying around you maybe able to do it with fcp7 too we just didn't have it in this studio.
    Fingers crossed Apple fixes the fcpx xml export.

  • How do I move an audio book from the Music Library to the Book Library?

    I inserted an audio book CD (previously purchased from a physical book store) into my iMac, in iTunes, and iTunes put it in the Music category of the Library instead of the Book category.  How do I fix this?

    Right-click the track(s), Get Info, go to the Options tab and set "Media Kind" to "Audiobook."

  • How can I force migration of data from the old sync to the new?

    I have two old instances of firefox (version 18 and 24) with sync set up; these are not accessible. How can I get the data from that account migrated to the new Sync backend without disconnecting these clients from Sync?

    The old and new sync use the same backend but that may not help you here; if for instance; you were hoping to do directional merges.
    Note the old and new syncs use a different account, and that the new sync only offers a merge option.
    * [[How to update to the new Firefox Sync]]
    *[[How do I choose what types of information to sync on Firefox?]]
    Relying on sync alone to backup bookmarks could result in all devices having corrupt bookmarks listings.
    If you have bookmarks involved I personally strongly recommend you manually back them up before making any sync changes, and thereafter do so at regular intervals - say every 2nd week. Sync is not good at handling large changes and large merges of bookmarks, corruption or duplication could occur.
    * [[Restore bookmarks from backup or move them to another computer#w_manual-backup]]'''_manual-backup'''

  • Had to get a new computer, how do I transfer all my data from the iphone to the new computer?

    Had to buy a new computer, how do I transfer all data from my iphone4 to new computer?

    - Transfer iTunes purchases by:
    iTunes Store: Transferring purchases from your iPhone, iPad, or iPod to a computer
    - To transfer other music you need a third-party program like one of those discussed here:
    Copy music from Ipod to new computer...: Apple Support Communities
    - Connect the iPod to the computer and make a backup by right clicking on the iPod under Devices in iTunes and select Back Up.
    - Restore the iPod from that backup

  • How to restrict user to select date from the calendar into a text item

    Hi All,
    I am using oracle 10g.IN a form i am having a block 'client_block' in that i am having a text_item ' entry_date' which is a datebase item and i have set enabled false in property palette and i created an image item on the same form and i have an calendar icon on it .In when_image_pressed trigger for image item i have written this code
    SET_ITEM_PROPERTY('CLIENT_BLOCK.ENTRY_DATE',ENABLED,PROPERTY_TRUE);
    DATE_LOV.Get_Date(sysdate,'CLIENT_BLOCK.ENTRY_DATE');
    This is working perfectly but user can enter or delete date into the text_item through keyboard i want to restrict that they can only select date from calendar.
    I have tried setting item property enabled false in triggers but it is not working.
    Can someone help me what trigger i have to use and how?.
    Thanks
    Sri

    Hi,
    This is working perfectly but user can enter or delete date into the text_item >>>through keyboard i want to restrict that they can only select date from calendarSet Insert allowed to 'NO' in property pallete of item ENTRY_DATE.
    In ON-ERROR Trigger::
    BEGIN
    DECLARE
    err_code CONSTANT NUMBER := error_code;
    err_type CONSTANT VARCHAR2(3) := error_type;
    BEGIN
    IF (err_type = 'FRM'
    AND err_code IN (40200)) THEN
    Message('Updates Not allowed, Please Select Your Date from Calendar');
    Message(' ');
    ELSE
    NULL;
    END IF;
    END;
    END;
    Thanks,
    Bhujendra

  • Where we can Read first pay date from the Payroll cluster ?

    Hi,
      I need Employee’s first pay date for that plan year.
      If u know plz help me in this.
    with regards,
    Suresh

    Hi there.  Do you mean the first date that the employee was actually paid?  If so, you can use this:
        CALL FUNCTION 'CU_READ_RGDIR'
          EXPORTING
            persnr          = employee_pernr
          TABLES
            in_rgdir        = rgdir
          EXCEPTIONS
            no_record_found = 1
            OTHERS          = 2.
        IF sy-subrc EQ 0.
        Store only active payroll results.
          DELETE rgdir WHERE srtza NE 'A'.                "Active
        Delete all the payroll results not from the requested year
          DELETE rgdir WHERE paydt+0(4) NE pay_year. "Reporting Year
        Delete voided payroll data.
          DELETE rgdir WHERE voidr NE space.              "Voided
        Sort so the first record is the last for the requested year.
          SORT rgdir BY paydt ASCENDING fpend DESCENDING.
          LOOP AT rgdir INTO ws_rgdir
            WHERE paydt > pay_year_begda.
            first_pay = ws_rgdir-paydt.
            EXIT.
          ENDLOOP.
    ENDIF.
    I hope this helps.
    - April King

  • How do i delete all my data from the ipad 4 from my PC?

    I know what my password should be but when I made it I guess I put it in wrong. so basically, I don't know my password. I tried putting it in but now everything is disabled and it says "connect to itunes" . now I just want to restore it but  everytime I try restoring it, it says "The iPad software update server could not be contacted." "Make sure your network settings are correct and your network connection is active or try again later." This happened last night and ive tried about 30 times. the method I have been using is disconnecting the USB, turning the iPad off, then turning it back on while the USB is plugged back in. After that it says "connect to itunes" on the iPad. So what should I do now? I just got it for Christmas and I don't mind all the data being erased cause its not hard to put back on. so PLEASE just tell me how to do it. I also never synced it to my computer. so PLEASE PLEASE PLEASE PLEASE PLEASE help me! And if you could tell me, how much would it cost to bring it into apple and they unlock it for me? id rather not do this, but if I have no choice, I will.
    PLEASE PLEASE PLEASE AND THANK YOU!!!!!!! :S
    #PLEASEHELP

    For more secure reason, I'd suggest to double check whether the data is removed cleanly with Erase All Content and Settings. The data is still recoverable as my pass experience. And no all devices are capable of using this method. Privacy is much more important. I highly recommend this method instead to permanently delete everything on your iPad by overwriting random digits to existing data. And there is no chance to get those data back.

Maybe you are looking for

  • Screen not working of Satellite Pro A

    My sattelite pro, not sure what model because the sticker has worn out, but I think its something like L18850 When I was using it today, it went into sleep, when I rebooted it the screen wouldn't come on. I tried removing the battery, holding power b

  • Version of Application Server for Oracle E-Business suite 12.0.4 ?

    Hi , I want to know the complete version of Application Server for Oracle E-Business suite 12.0.4 . The installation guide/ rapid install mention this : A) Oracle database 10.2.0.3 B)Applications Server : 10.1.3 oc4j C) Application Server : 10.1.2.2

  • How to Use SOAPArray to Exchanged Data with a Web Service

    The method of a prototype Web service I created is defined to take many parameters and return an object of a user defined class. Furthermore, the user defined class includes data elements of another user defined class and the Java ArrayList class. Th

  • What Happens When Premium Expires

    As most of you probably know Skype offered the free 6 month premium membership when you set up the Skype App on your Xbox One.  My question is once this 6 months expires does Skype automatically renew your subscription or will they prompt you to rene

  • I need help fixing a small error

    I am using a trial version of Flash Pro 8 and i bought a flash site template. I am editing text in the site to my liking and when I tested the site I recieved this error message: Error: A 'with' action failed because the specified object did not exis