Please help me with recording and playing audio simultaneously!!!

Right now I can either play the incoming stream OR record it. I tried making Clones for datasource like :
DataSource clone1 = Manager.createCloneableDataSource(originalSource);
Then I pass it to these 2 classes:
new playThread(clone1).run;
new recordThread(clone1).run;
playThread is a Thread class that will take the cloned datasource and then plays it while recordThread will record the incoming datasource. Here is what happens when i run them one after another:
When I run playThread before recordThread I get ACM driver error. But if I run the recordThread before playThread the playThread's playerWindow shows up and plays for a split second then stops; The recordThread does record all the incoming stream though... Here are my questions....
1. Anyone know what my problem is? is it resource alocation? Threading problem?
2. Did I use the clone datasource correctly? I tried making clone1, clone2 but those didnt work well either...Should I do anything to the clones for record and play? all I did was pass them to the 2 classes and those classes just use them straight out without proccessing or anything...
Please help me out!!!! thanks a bunch!

i dont think it is... i tried the clone thing but samething happened... it might be a Thread problem since when i put those together sometimes record runs sometimes player runs... and at the end i get "ERROR while querying ACM driver's information" error..... i am really confused...
DataSource clone1 = Manager.createCloneableDataSource(originalSource);
DataSource clone2 = Manager.createCloneableDataSource(clone1);
playerThread play= new playerThread(clone1);
recordThread record= new recordThread(clone2);
record.start();
broad.start();
anyone can help is appreciated

Similar Messages

  • Recording and playing Audio at the same time

    Hi,
    Having problem with a MMAPI imp.
    The simplest way of doing it is to start one thread playing a audio file of any kind.. As it is playing start a other thread that start a audio recording.
    As soon as the audio recording is allowed to record (Security promt) the audio playback stops. And the playerListstner sends a END_OF_MEDIA event.
    So my question is: Is there a way of doing playback and recording at the same time or is this a limit on the phone or the MMAPI?
    This has been tested on Nokia N90 and SE W550i with same reults
    Cheers
    Kenth

    i also desperately need to record and play audio at the same time.. i have a term project, i am develeoping a karaoke player in j2me and it is supposed to capture the voice at the same time background song is played.. and it is also supposed to grade the singer according to the pitch of voice.. please help me about recording and playing audio at the same time...

  • Recording and playing audio files

    hi, is there a way by which one can record and play an audio file in java ?? I am doing a project in Voip but I can't find any help in this matter(actually i am a newbie in java ) .. can anyone please tell me how to proceed?
    Edited by: streetfi8er on Jun 28, 2009 2:47 AM

    >
    hi, is there a way by which one can record and play an audio file in java ?? I am doing a project in Voip but I can't find any help in this matter(actually i am a newbie in java ) .. can anyone please tell me how to proceed?>You could not find anything on ['java audio'|http://lmgtfy.com/?q=java+audio]? Where did you look, underneath the bed and in the back yard?
    Note that you might help dispel my impression that you are lazy, by applying the shift key once at the start of each sentence.

  • Please, help me with parents and childs

    hi,
    I just can't figure it out which mc is the parent and which
    are its children. Please help.
    Here's the code:

    THX. I saw the same "family tree", but I started to doubt as
    soon as I tried to add blur filter to menu items. I've found it on
    the www.kirupa.com (they have some great stuff there). Here is the
    direct
    LINK
    to the script. Can you tell me, how can I add a blur filter to menu
    items. By default they are blured and OnRollover they get cleared.
    regards

  • Please help me with audigy and ADA 885 in

    i can't sovle the problem with Quad Mode of ADA 885 system even try all "bassfix" at Dell homepage.
    I am using windows XP SP2.And i think maybe a new sound card can solve this problem.
    What sound card can solve this? or is there any way to solve it without "touch the wallet"?. I like creative's one:Audigy 4,X-Fi ...
    Please give me an advice!

    Hi,
    There is a way to Get all the Values.
    I have created Two Test table and will give the Details how is works.
    Step1:
    /* Master Table For ur Source */
    Create table test_no
    ( id varchar2(1))
    /* Inserted Three Rows as per ur requirement */
    insert into test_no values('S');
    insert into test_no values('P');
    insert into test_no values('O');
    Commit;
    /* Transaction Table */
    Create table Test_no1
    ( no number,
    id varchar2(1))
    /*Inserted the following Values in Transaction Table i.e. Test_no1*/
    NO     ID
    1     S
    2     S
    3     P
    4     P
    5     S
    6     P
    7     O
    8     O
    9     O
    /* Code For getting the Desired Results */
    Select a.no,a.id
    from Test_no1 a, test_no b
    where a.id =decode(:MY_LIST,'A',b.id,:My_List) /* A is getting Treated as All for S,O,P */
    and a.id = b.id;
    /*If u provide the Value 'S' to :My_List the O/P will be */
    NO     ID
    1     S
    2     S
    5     S
    /*If u provide the Value 'P' to :My_List the O/P will be */
    NO     ID
    3     P
    4     P
    6     P
    /*If u provide the Value 'O' to :My_List the O/P will be */
    NO     ID
    7     O
    8     O
    9     O
    /* Now if u provide the Value 'A' to :My_List the O/P will be */
    NO     ID
    1     S
    2     S
    3     P
    4     P
    5     S
    6     P
    7     O
    8     O
    9     O
    All the Rows will be Displayed.
    U can change the Where clause as per ur SQL and try running it.
    I hope this will help u.

  • Please help me with feedburner and iTunes! Help!

    I'm knew to podcasting, so if someone could help me out you'd rock. I have a show on podbean.com, and my show is also on iTunes.
    I burned the feed with feedburner, but feed burner shows 0 subscribers 0 listeners. Podbean.com shows hundreds of downloads.
    Could someone explain to me IN PLAIN SIMPLE ENGLISH how to get iTunes to recognize my feed burner version of my feed?!?! I can't seem to make sense out of any answers online, and i am frustrated!
    Here are my links, could someone simplify this for me? Thanks.
    http://todayinipad.podbean.com/feed/
    http://feeds.feedburner.com/TodayInIpad
    -Dr. Brad

    This is the problem with services like Podbean, they may make things easy, but you don't have a lot of control. The same is true of Feedburner, of course; mostly it works OK but you should be aware that if you wanted to change from it you would have the same problem. On the plus side, you can change the feed which you submit to Feedburner without upsetting iTunes, and of course you get the statistics which iTunes does not provide.
    In order to remove your existing podcast, follow the instructions here. Then submit anew using the Feedburner feed, or another if you decide to do that.
    However, if you keep the same title you will probably have the submission rejected on the grounds that a podcast of that name has already been submitted (even though it's been removed) - this appears to be a bug in the Store. You will probably need to make a small change to the title - a bit of punctuation, perhaps, such as 'Today - in iPad'; you could then change the title back once the feed has been accepted and is up and running.

  • Please help me with playlists and songs

    Hiya Im really stuck!
    I have an Ipod and am running windows, I added all my CD's and songs to my Ipod but as my computer doesnt have a lot of space I deleted them from the hard drive once I had done this.
    Now when I try to make a standard playlist by dragging them onto the playlist I created it wont work and it also wont let me add any artwork to albums.
    Am I being really thick or is there a simple solution.
    Any help is really really appreciated
    Thanks

    "Am I being really thick or is there a simple solution."
    Yes. Don't delete them from your hard drive. You cannot create playlists of, or add artwork to songs that aren't there!!

  • U410 PLEASE HELP me with WIFI and Dolby on Windows 8

    I've just purchase windows 8 Pro, everythings seem to working greate but WIFI an Dolby. Wifi didn't work no matter what I tried. I researched on this forum, maybe it causes by Intel Rapid Storage and the irresponsibility of Lenovo's driver coder  team on Windows 8. Have anyone tried disable accelerate mode in IRST while keep RAID on ?

    It seems nobody solved **bleep** U410 issues

  • Since up dating my Firefox I can not play any games on Facebook they all run very slow, can someone please help me with a solution.

    Since up dating my Firefox I can not play any games on Facebook they all run very slow, can someone please help me with a solution.It mainly seems to be with games.

    RE: "P.S. I  found it aggravating that I couldn't copy and paste text  here, it wanted me to insert as a link or an image, how do you insert plain  text?"
    I take it you tried using the "right click" menu?   That doesn't seem to work, as you noted, but, you should be able to paste text by pressing your CTRL key  and while holding it down, press the "V" letter  key.
    CTRL + C = COPY
    CTRL + X = CUT
    CTRL + V = PASTE
    HTH,
    Ortho_Fan

  • When I import a video I recorded to my laptop from my Iphone 5c  it won't play on window media centre or vec or any medium. Please help??? It plays perfect on the phone.

    When I import a video I recorded to my laptop from my Iphone 5c  it won't play on window media centre or vec or any medium. Please help??? It plays perfect on the phone.

    The format from the phone is :
    h.264 encoded video, AAC audio. Both standards of MPEG 4.
    You need Windows Media Player version 12 or above to play MP4 (or add the codecs to your current version).

  • I bought a movie the movie Godzilla 2014 recently but it didn't show up in my library. I went check the itunes store and it wants me to buy it again. Please help me with this problem.

    I just bought this movie "Godzilla 2014" but it won't show in my Movie Library. I closed my Itunes and put it back on again but still won't show up. I checked my purchased list and it shows that I recently bought the movie but when I checked the itunes store it wants to buy the movie again. Please help me with this right away Apple.

    Apple Store Customer Service at 1-800-676-2775 or visit online Help for more information.
    To contact product and tech support: Contacting Apple for support and service - this includes
    international calling numbers..
    For Mac App Store: Apple - Support - Mac App Store.
    For iTunes: Apple - Support - iTunes.

  • HELP!!!! My Hotmail no longer works with Safari v. 5.0.6 and my Imac Leopard operating system 10.5.8.  Please help me with any suggestions on what to do.  Thank you.

    HELP!!!! My Hotmail no longer works with Safari v. 5.0.6 and my Imac Leopard operating system 10.5.8.  Please help me with any suggestions on what to do.  Thank you.  I cannot find any new downloads for Safari that work with Leopard.  The newest ones only work with Lion.  My Firefox browser still works though but I would rather use Safari and cannot access any e-mails or send any e-mails via Safari.  This happened about 3 weeks ago and I thought it was just a glitch on Hotmail's site.  Now I realize Hotmail must have released an update that no longer works with Leopard 10.5.8.  PLEASE HELP ME!!!!  Thanks to anyone and everyone who reads this and attempts to help me.  I do not know what to do....

    Hi Sue,
    What exactly happens when trying Safari?
    They did change it to Outlook recently, but while not pretty, I can access mine with Safari 4.0 still...
    You can also set it up in Mail so you don't need a browser at all if you want.

  • Hello, Honestly I just updated my 4s and my iPad 3 to iOS 6 and when try to press on the Music app or the iTunes app it says "cannot connect to iTunes Store" Could you please help me with this thank you so much, Charbel from Lebanon

    Hello, Honestly I just updated my 4s and my iPad 3 to iOS 6 and when try to press on the Music app or the iTunes app it says "cannot connect to iTunes Store" Could you please help me with this thank you so much, Charbel from Lebanon

    See these previous discussions help.
    App Store Updates (but only Updates)...: Apple Support Communities
    Apps suddenly don't update: Apple Support Communities

  • Please help me with the accounting records of iTunes. At step in placing credit card details are asked to contact iTunes Support

    Please help me with the accounting records of iTunes. At step in placing credit card details are asked to contact iTunes Support

    Brenda, the easiest way to contact the support team is thru the iTunes Customer Service website:
    http://www.apple.com/support/itunes/contact/

  • I recently upgraded to IOS 10.9.5 and now I can't export anything from final cut Pro X. Could somebody please help me with this?

    I recently upgraded to IOS 10.9.5 and now I can't export anything from final cut Pro X. Could somebody please help me with this?

    SSign in to the App Store using the Apple ID that was used to purchase the software.

Maybe you are looking for

  • Software Update Service house cleaning

    What controls house cleaning for the Software Update Service? If I ask it to stop mirroring updates that have long since been applied, the files still hide in /usr/share/swupd/. Deselecting the mirroring of an update doesn't help. The normal house ke

  • Blue screen when connect iPod classic

    I tried to connect my new iPod classic for the first time and continually get the blue screen of death. I had been using a Nano (2nd gen, not the video one) on this PC without problems, but now when I try to connect the Nano I also get the blue scree

  • SMS Provider Locations Do Not Match - Problem installing SCCM 2012 R2 CU4

    I have an SCCM 2012R2 CU1 site that has been upgraded from SCCM 2012 non-SP1, so I have gone from 2012 to 2012SP1 through CU5 and then to R2 and then to CU1. Over the course of the life of this site, which has more than 10k clients and 10 Site System

  • Syncing issues and music on phone will not play.

    I recently syned my I-phone to my computer  and noticed many of my songs were not successfully copied to my library for some reason?  Since doing so and to top it off, when I go to play the music on my I-Phone it just skips over majority of the songs

  • How does one remove duplicate versions of the same songs on an iPhone5?

    How does one remove duplicate versions of the same songs on an iPhone5?