Unable to record audio from second time onwards on Ubuntu 8.04.

Hi All,
I have developed an audio recording application. The application provides the facility to record, save and play the audio using javax.sound API any number of times. The application works fine on MAC and Windows Systems. But when I run the same application on Ubuntu 8.04, for the first time, it works fine and file is recorded and played successfully. If I try to record the second time, the following exception is thrown:
javax.sound.sampled.LineUnavailableException: line with format PCM_SIGNED 44100.0 Hz, 16 bit, stereo, 4 bytes/frame, little-endian not supported.
     at com.sun.media.sound.DirectAudioDevice$DirectDL.implOpen(DirectAudioDevice.java:506)
     at com.sun.media.sound.AbstractDataLine.open(AbstractDataLine.java:107)
     at com.sun.media.sound.AbstractDataLine.open(AbstractDataLine.java:139)
     at com.gtcocalcomp.screenrecorder.JRecorder.initiateAudioRecordingProcess(JRecorder.java:202)
     at com.gtcocalcomp.screenrecorder.JRecorder.<init>(JRecorder.java:79)
     at com.gtcocalcomp.interwrite.RecorderWindow.record(RecordPlayback.java:665)
     at com.gtcocalcomp.interwrite.RecorderWindow$5.mouseReleased(RecordPlayback.java:597)
     at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:232)
     at java.awt.Component.processMouseEvent(Component.java:5488)
     at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
     at java.awt.Component.processEvent(Component.java:5253)
     at java.awt.Container.processEvent(Container.java:1966)
     at java.awt.Component.dispatchEventImpl(Component.java:3955)
     at java.awt.Container.dispatchEventImpl(Container.java:2024)
     at java.awt.Component.dispatchEvent(Component.java:3803)
     at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
     at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
     at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
     at java.awt.Container.dispatchEventImpl(Container.java:2010)
     at java.awt.Window.dispatchEventImpl(Window.java:1774)
     at java.awt.Component.dispatchEvent(Component.java:3803)
     at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
     at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
     at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
     at java.
.EventDispatchThread.run(EventDispatchThread.java:110)
If I close the application and restart, then again for the first time, it works fine and gives the above exception from there onwards.
I tried several options like, making all the objects involved in starting the audio recording process to null, then calling System.gc() and creating every object a fresh but no success.
Can anybody give me some idea/information/links to overcome this problem?
Thanks in advance.

Yes Captfoss, I am calling close() method on all of the lines. As I mentioned in my query that same code is working fine on MAC and Windows OS and the problem is coming only on Ubuntu System. I also tried by making all the objects involved as null, and creating all the objects a fresh, but still no results. When I checked by calling isOpen() method on TargetDataLine, only for the first time, its returning true, thereafter, in all my attempts, its returning false only throwing the exception mentioned in my query.
I came across following link during my search regarding the issue which may provide some more information about this problem to you:
http://osdir.com/ml/voip.sip-communicator.devel/2008-07/msg00058.html
http://osdir.com/ml/voip.sip-communicator.devel/2008-07/msg00060.html
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4735740
http://bugs.sun.com/bugdatabase/view_bug.do;jsessionid=3e32926bb8f4cffffffff8d3d67e0f0aabf3?bug_id=4365713
Can you please suggest whether its an OS issue or is it an issue with JavaSound ?
Is there any specific way to find and close any input line related to audio which are opened ?
Thanks in advance.

Similar Messages

  • Anyone know if there is an adapter to record audio from an outside source in real time to an iphone 4s or 5s video?

    Anyone know if there is an adapter to record audio from an outside source in real time to an iphone 4s or 5s video?

    Hi @imobl,
    You sound like an Apple support guy who hasn't been able to answer my questions.
    To respond to some of the points you made,
    - I did not ignore Ocean20's suggestion. If you has read my post, you would have known that I took my phone to the apple service centre where they tried this restore on THEIR machines. I am assuming that Apple guys know how not to block iTunes. So I actually do not understand your point about me trying the hosts file changes on my machine. Do you not believe that apple tested this issue with the correct settings?
    - you also give a flawed logic of why the issue is a hardware issue. You mentioned that If I thought that the issue was with the software, i should try a restore and getting it to work. The problem is that my error (23), and many others comes up when the restore fails. And you would be astonished to know that not all errors are hardware errors. Sometimes even software errors prevent restores. Funnily enough Apple itself mention that 'in rare cases, error 23 could be hardware related'.
    - all Apple has done so far is replicate the issue. I don not know how anyone can conclude that the issue is a hardware issue.
    And by the way, I am not certain that this is a software bug. Again if you read my Posts, you will notice I only want a confirmation,/proof that the issue is hardware related as they mention..
    Please refrain do. Responding if there is nothing to add.

  • RDL report(2008).Want to display different number of rows from second page onwards than the first page.

    I have used pagination to display the report data.I have used page break.I want to display 10 records on first page and from second page onwards I want to display 25 records on all remaining pages.
    I followed this link to show 25 records for all page. "http://www.sqlchick.com/entries/2010/9/11/displaying-fixed-number-of-rows-per-ssrs-report-page.html". Now suggest me how display 10 records only on first page having 25 from second page onwards.

    Hi mukesh_harkhani,
    According to your description, you want to insert page break for different number of rows, display 10 rows on the first page and 25 rows on the following pages. After testing the issue in my SQL Server Reporting Services 2008 environment, we can use the
    method below to achieve your requirement:
    In your scenario, right-click the group which contains the expression: =CEILING(RowNumber(Nothing)/25) to open the Group Properties dialog box.
    Modify the original expression to the following in the Group on textbox:
    =Floor((RowNumber(Nothing)+14)/25)
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Record audio from .exe file

    Hi we had created an entire project of 2.5 hours of around 140 slides using Adobe Captivate 6. We had put the slide notes as text and published an .exe file and shared the same with the client.
    However, now we have lost the source captivate .cptx file and have to redo the project from scratch.  We have the powerpoint presentation for each slide so putting the objects as per the .exe is not an issue.
    We figured the easiest way to have the audio is to record directly from the .exe and then put the audio files in captivate, rather than putting slide notes and repeating the entire process.
    Is there a way to directly record audio from the .exe file? This will reduce our effort with respect to the pronunciation of words.

    Double-click your .exe file and let it run, do not close. If you're on Windows 7 go to
    C:\Users\your user name\AppData\Local\Temp\
    and look for a folder like CPE7770.tmp. You can use the date and time stamp to locate this folder.
    Your swf file will be there.
    If on another Windows OS, the path should be similar.
    You can also use software like Audacity or Audition to record audio from your computer. Set up will depend on your system config.
    Cheers,
    Seth

  • Problem recording audio from sampler...

    Problem recording audio from sampler (MPC 1000) to Logic using midi trigger thru Lexicon Omega box.
    When I hit the record button in Logic, it triggers my mpc to start playing. Logic then picks up the incoming audio signal on the appropriate track and starts recording the audio... PROBLEM- Logic appears to keep restarting the incoming audio, repeating the first 1/4 of the first 1Bar. So every time I hear the metronome tempo counter as it records, the incoming audio replays from the beginning and this is what gets recorded. On the contrary when I'm controlling the sampler via midi and just hit the play button in Logic, the audio signal comes threw and plays the full 4 bars of the audio that I want recorded.
    Any idea on how I can fix this? It seems like it has to do with my metronome counter or midi time code?
    Thanks to all that help!

    Thanks, good suggestion but these are music instruction dvds that aren't copyrighted.
    cheers
    Eric

  • Recording audio from a DVD

    Does anyone know of a good freeware or shareware program for recording audio from a DVD into any format?
    iBook G4   Mac OS X (10.4.3)   80G HD/1.33GB RAM/ Too Much Music

    A nice tool for ripping and demuxing the audio part off a DVD is OSex.
    You will get ac3 track - convert them with mAC3dec. http://sourceforge.net/projects/mac3dec

  • Recording audio from device on server

    I have some really nice audio recording gear hooked up to my computer, and I got a neat idea. I want to turn my PC into a web server and serve a flash application from it that allows a user to record audio from MY hardware (basically record the output of a mic hooked up to the "server") and then download the resulting audio file to his or her computer. Is this possible to do using a single flash application? I'm sure I could send commands to a C application on the "server" that would do the recording, but I'm wondering if there is a more simple solution. Also, monitoring the audio while it is being recorded would be nice.
    Thanks

    The issue I see with iTalk and similar iPod apps is that the iPod has no line-level input, so you'd have to use one of the earbud/microphone combinations or an external microphone like this one which will be limited as to quality. There are some other options here. But if you want pro quality, and particularly want to tap straight off of a mixing console, a device like the Alesis is going to be necessary, though there may be something less expensive that I can't find.
    If a microphone works for you, then iTalk might be fine. There's a freeware version of iTalk, iTalk Lite, you can try, to see if it will do the job. It doesn't have the advanced playback controls and has a limit of 2MB per recording, but it should allow you to test it out. Voxie is another possibility.
    Regards.

  • Recording audio from a soundboard

    Hello fellow iMac'ers, got a brand iMac with OSX Mavericks. I'm trying to set it up to record sound from a Peavey XR1212. I'm a PC guy, so I'm used to using Audacity to do the same procedure, so I downloaded it and tried to get it to work.  The soundboard has an "mp3 in" line as well as an RCA out jack.  The iMac does not have a mic in line, only a headphone port.  I called Apple Support and the representative informed me that the headphone port on the Mac is smart enough to determine whether I would be using it for headphones of a mic in line, so I should put the mic in line there.  So my set up was running an RCA jack (red and white connected to soundboard) with a headphone jack on the other end into the headphone port on the Mac.  When I began recording on the through Audacity, the program did not show me the soundboard or the RCA jack as one of the available options to choose to record sound from, it defaulted to the internal mic on the Mac as the only option.
    I did not try going from the "mp3 in" line from the soundboard (which btw is a headphone port as well) to the headphone port on the back of the Mac.  I use an auxiliary cord to play music from the Mac through the soundboard with these headphone ports, but it just didn't seem obvious to me that this set up could be used for recording.
    While I was downloading Audacity, the Mac was updating garageband, which I have little to no familiarity with.  I have done some research and found out that I could potentially use this to record from my soundboard as well.  So finally here is my questions:
    1) The back of the iMac has 4 USB ports, 1 FireWire port, 1 headphone port and 1 ethernet port.  Since there is no "mic-in" port, what port can I use to record audio from the soundboard in audacity or garageband?
    2) If I go from the soundboard with an RCA into the headphone port on the Mac, can I use garageband to record?

    Thanks. Now, since Apple failed to provide an audio in jack for their new and improved iMacs (mine has one), all I can suggest is that you contact AppleCare, since you have 90-dqy free phone support. If need be, you might reconsider your purchase, but that's for you to decide.

  • Recording audio from a Channel Send

    I've done this before, but I can't seem to do it again.
    I am trying to record audio from one channel (which is using an audio instrument) to another channel (an audio channel) using an audio send. I am not having a problem setting up the send. I am able to hear the audio correctly and independently on both channels. The problem occurs when I try to record the audio, because there is no "record" button on the channel header for me to arm the track. The track is set up as a "record-enabled" track, but in the space where the other tracks have the record button, there is just a empty space on this tracks header. Does anyone know why this is happening? Any help would be greatly appreciated.
    Thanks.

    Well,
    I seem to have found the problem. It appears that "audio tracks" will not allow you to arm them for recording unless there is a possible real audio input device connected to the computer. I plugged in my Snoball mic, allowed Logic to set it up as a device, and the record button magically appeared in the track header.
    Hope this helps anyone else who is having a similar issue.

  • Recording Audio From A Sound Board

    I was originally planning on buying a Samson Zoom H2, H4N, or ProTrack Stereo Recorder to begin recording audio at concerts I attend using the house sound board, but began wondering if the iPod Touch had the same capability, perhaps by adding an app of some kind. It would also be useful to record audio from weddings I videotape. I know there are voice recorders such as the Belkin that you can attach, but I was thinking more of connecting the iPod directly, by using a 1/4" to mini cable adapter. Is this possible? If so, what app would enable me to do this?

    The issue I see with iTalk and similar iPod apps is that the iPod has no line-level input, so you'd have to use one of the earbud/microphone combinations or an external microphone like this one which will be limited as to quality. There are some other options here. But if you want pro quality, and particularly want to tap straight off of a mixing console, a device like the Alesis is going to be necessary, though there may be something less expensive that I can't find.
    If a microphone works for you, then iTalk might be fine. There's a freeware version of iTalk, iTalk Lite, you can try, to see if it will do the job. It doesn't have the advanced playback controls and has a limit of 2MB per recording, but it should allow you to test it out. Voxie is another possibility.
    Regards.

  • Recording Audio from additional sources:  Why doesn't the "Audio File" show

    Hi, when recording audio from another source and saving: where does logic store the file? Shouldn't it be in the "audio' folder or the set path you set it to>?
    For some reason after we record the "Audio File" we recorded is not to be found in the "Audio" folder we created within our project?
    clues?

    Can you define "from another source". I'll assume for now, you mean, from an external live source, like a vocal, or guitar.
    Yes, if you had saved the song using the "Save As Project" command, the audio path to that songs audio folder should have been set. and all audio files recorded into that song would reside in that location.
    The only thing that you might want to check, is hit "A" with the song open, and make sure "choose path" is set to "Song Recording Path" and not "Global Recording Path".

  • Recording Audio from Video Tape

    Hi! I want to record audio from a video tape and put the audio into my imovie. I have done this funtion before, but I can't seem to remember how! I am able to play the movie (the video tape) in a VCR which then goes through my "bridge" (DV Converter) and into the computer. When I open imovie and import the video and audio into a "clip", I can't seem to play the clip and record the "audio" in the audio section. Again, I have done this before, I just don't remember how. Can anyone help??

    Hi Kim - welcome to the forum!
    You would simply extract the audio from the clip - select it, then go Advanced>Extract Audio (Command J). This will place the audio in the top audio track. Then you can delete the clip, and move the extracted audio to wherever you want it.
    Does that help?

  • Any Freeware suggestions to recording audio from a DVD?

    If I am playing a DVD in my iBook, I want to be able to record audio from that DVD. Any suggestions?

    The free program a52decx takes a DVD and outputs the audio in an .aif file. Search google to find it.
    12 iBook G4 1Ghz   Mac OS X (10.4.4)   Other machine: Mandriva Linux i586

  • ADF application taking more time for first time and less from second time

    Hi Experts,
    We are using ADF 11.1.1.2.
    Our application contains 5 jsp pages, 10 - 12 taskflows, and 50 jsff pages.
    For the first time in the day if we use the application it is taking more than 60 sec on some actions.
    And from the next time onwords it is taking 5 to 6 sec.
    Same thing is happening daily.
    Can any one tell me why this application is taking more time for first time and less time from second time.
    Regards
    Gayaz

    Hi,
    If you don't restart you WLS every day, then you should read about Tuning Application Module Pools and Connection Pools
    http://docs.oracle.com/cd/E15523_01/web.1111/b31974/bcampool.htm#sm0301
    And pay attention to the parameter: Maximum Available Size, Minimum Available Size
    http://docs.oracle.com/cd/E15523_01/web.1111/b31974/bcampool.htm#sm0314
    And adjust them to suit your needs.

  • Picking List Second time onward printing need to use diff logo

    Dear experts :
    Good afternoon, need some idea. If the customer requested the picking list, first time printing need to print logo A. But if second time onward printing (like reprint) then need to print logo B.
    The picking list is writtin in smartform.
    Any idea, how to control it ?
    Thank you very much.

    jay1981 wrote:
    I own a dvd business and would like to use it.
    //Create new DVD objects and add them to the inventory
    DVD theDVD = new DVD("Good Luck Chuck", "Comedy", "1", 10, 19.99);
    theInventoryGUI.addDVDToInventory(theDVD);
    theDVD = new DVD("The Bourne Identity", "Action Adventure", "2", 20, 15.49);
    theInventoryGUI.addDVDToInventory(theDVD);
    theDVD = new DVD("The Reaping", "Horror", "3", 13, 15.99);
    theInventoryGUI.addDVDToInventory(theDVD);
    theDVD = new DVD("Deja Vu", "Action", "4", 17, 14.49);
    theInventoryGUI.addDVDToInventory(theDVD);Bad luck if the customer wants anything other than those 4 DVD's

Maybe you are looking for