Audio recording in memory and not on disk...

Hi all,
after searching on Apple reference I found that it's possible, using Audio Queue Services, to record not only on a physical file (ref: Audio Queues Services Programming Guides).
I saw the SpeakHere example and some other threads in this forum, but all are recording on a file...
What paremeter I have to pass to the recording callback function instead of the pathToFile or the AudioFileID?? I'd like to have a in memory buffer (byte array, or something similar...)...
Any Help??

First question: 192 bit audio -- does iDVD support this?
I thought i heard that iDVD8 was supposed to support MPEG muxed?
If not, your best bet is MPEG Streamclip - free from Apple
Tho you MAY need:
1. QTPro &/or
2. MPEG2 plugin) to do what you want. -
Streamclip has several 'demux' commands (I can't speak for whether or not this touches/degrades video - but seems likely not.. ).
I really think iLife is fabulous -- but Apple makes it REALLY difficult to figure out what these Apps support & Worse how to get from point A to B without degrading quality.
HTH - xandra
Please post back if you find a solution.

Similar Messages

  • Saving a recording in  memory and in disk at the same time.

    Hi, I record audio and a I want to save it in memory,then when the user presses a stop button I have to save the audio that is in buffer to a directory file. So far I to the first part that is save in memory. Here is some code I use:
    {color:#0000ff}
    class {color:#000000}recording{color} extends {color:#000000}Thread{color}*{*
    * boolean {color:#339966}suspended{color};*
    * public void* {color:#000000}run{color}*(){*
    * try{*
    * while*{color:#000000}(!{color}{color:#339966}*suspended*{color}{color}{color:#000000})
    {color} File *{color:#339966}file{color}*={color:#0000ff}*new*{color} File*{color:#ff9900}("C:/prueba.wav"{color}*);
    ByteArrayOutputStream {color:#339966}*dataCapturada*{color}={color:#0000ff}*new*{color} ByteArrayOutputStream();
    byte *{color:#339966}bufferTemporal{color}*[]={color:#0000ff}*new* {color}byte[10000];
    {color:#0000ff} int {color}numbytesleidos=*{color:#339966}targetDataLine{color}*.read(*{color:#339966}bufferTemporal,{color}*0,{color:#339966}*bufferTemporal.length*{color});
    datacapturada.write*{color:#339966}(bufferTemporal{color}*,0,{color:#339966}*numbytesleidos*{color});
    }{color:#0000ff}*catch*{color}(Exception e){e.printStackTrace()}
    So far,this works perfectly, but i put this line of code to save in directory file after the line:datacapturada.write....
    AudioSyste.write(*{color:#0000ff}new{color}* AudioInputStream({color:#339966}*targetDataLine),*{color}AudioFileFormat.Type.*{color:#339966}WAVE{color}*,*{color:#339966}file{color}*);
    It saves file in the directory file,but doesnt save in memory. Why could this be??

    Ok sorry, as you had seem in other forums, meaning JMF,I decided to record from microphone in WAVE format. This is done, but I also have to show the volume in a progress bar. So I take and example and it works, but this method that calculate volume needs an array of bytes, that is the array that I use for record in memory.So record in memory and show a progress bar volume works, but I also have to save in directory file. My idea is to save in memory and save in file directory at the same time, or save in memory and then when I press a stop button transfer the data saved in memory to the directory file.Here is all the code,assume that all declarations have been done:
    public void capturarAudio() {
           try {        
                formatoAudio = obtenerFormatoAudio();
                DataLine.Info lineaDataInfo = new DataLine.Info(TargetDataLine.class,formatoAudio);
                linea = (TargetDataLine) AudioSystem.getLine(lineaDataInfo);
                linea.open(formatoAudio);
                linea.start();
                Thread hiloGrabacion=new Thread(new hiloGrabacion());
                hiloGrabacion.start();
           } catch (LineUnavailableException ex) {
                Logger.getLogger(InformDetail.class.getName()).log(Level.SEVERE, null, ex);
    class hiloGrabacion extends Thread{
            byte bufferTemporal[] = new byte[10000];
            File archivo=new File("C:/Documents and Settings/java/multimedia/audio.wav");
            @Override
            public void run(){
                dataCapturada     = new ByteArrayOutputStream();
                detenerGrabacion  = false;
                try{
                    while(!detenerGrabacion){
                        int numBytesLeidos=linea.read(bufferTemporal,0 , bufferTemporal.length);
                        if(numBytesLeidos>0){
                            dataCapturada.write(bufferTemporal, 0, numBytesLeidos);
                            mostrarVolumen(bufferTemporal,0,numBytesLeidos);
                            lblCronometro.setText(linea.getMicrosecondPosition()/1000000+"");
                    AudioSystem.write(new AudioInputStream(linea), AudioFileFormat.Type.WAVE, archivo);
                    dataCapturada.close();
                }catch(Exception e){
                    e.printStackTrace();
        }

  • Wich one best for Audio Recording using cubase and pro tools? MBP md102 or MBP md103? i often using a lot of VST

    wich one the best for Audio Recording using cubase and pro tools? MBP md102 or MBP md103? i often using a lot of VST too

    Well, I've been trying this for a while. By my calculations, at this rate, installing all the applications one by one and trying to restore all the data manually will take me about six years. I would finished just in time for the Tokyo 2020 Olympics.
    The main problem is, I don't know where all the bodies are buried. Just one example, I'm using Cornerstone for an svn client. I have working copies of multiple repositories on my computer. I really don't want to set them all up again, and I can't figure out where the Cornerstone preferences and all settings are stored. I couldn't find them in the Library anywhere.
    And that's just one case.
    I haven't done much with my MacBook Pro yet, I think in retrospect the easiest course of action is to reinstall OS X as though it were new MacBook Pro, start from scratch, and use my Time Machine backup with the migration assistant and go from there.
    And that's what I'm doing right now. I'm in the middle of reinstalling OS X.
    Afterwords I'll use a clean app uninstaller application to get rid of all the applications that I'm not using. And I'll just hack away at directories that I know I haven't looked at for years, with the confidence that I have a backup both in Time Machine and in CCC and also on my iMac. That's three backups.
    I would rather start out "light", but I can see it's just going to take forever and a day to get it done. Anyway, fortunately nothing is carved in stone, and I can always try again if I want to. But dealing with all the documents and all the applications one by one separately was just obviously going to take too much time.
    I'll report back on my results. And I appreciate your suggestion.
    Doug

  • OIM 11g using too much memory and not releasing it when shutting down

    Hello,
    we have a problem with OIM 11g using too much memory (about 5gb) and it's not releasing it at shutdown (4gb still used).
    We are using a VM with RedHat Linux 5.6. Originally we had 4gb RAM + 2gb swap file. We installed Admin Server, OAM, OIM and SOA on that machine but quickly realised we couldn't run all 4 programs at once in 6gb. AdminServer could run with 2 other products, but it was a tight fit in memory.
    So we increased the RAM to 8gb (still 2gb swap file). But then our problem occured : I start the Admin Server (2.7gb total memory used), then OAM (4.6gb total memory used) and then OIM. After it started the server is now using 9.6gb of memory (~300mb of free memory) ! The problem gets even better : after I shut down everything (OIM, OAM, admin server) the "top" command show that there is still 4gb of memory used even tho nothing else is running on the server ! There is absolutely no other process (other than root stuff) running and no other users connected to the machine. After a reboot, it shows 400mb of memory used. I tried restarting the programs and it did the same thing.
    Our intuition is that there might be a memory leak or some bug in OIM that might use up almost all the free memory and it's not releasing it upon shutdown. It might have been there before we increased the memory but have not noticed it since memory was already tight.
    Anyone encountered the same problem ? Any idea ? Any suggestion to narrow down the problem ?
    Thank you

    You can adjust the memory settings for WLS by editing the setSOADomainEnv.sh file that can be found in your /middleware/user_projects/domains/<domain>/bin/ folder. There is an argument called PORT_MEM_ARGS which is used to set your Java memory arguments. This way you can decrease/increase the amount of memory used by each managed server.
    I usually type "ps -ef | grep oracle" to see what processes are running by the oracle user. This way the output doesn't get cluttered with root processes.
    Sunny Tsang

  • PS CS4 eating memory and not responding

    I have PS CS4 (11.0.1) and for the past month and a half, using PS has been excruciating.  Whenever I open PS, my memory usage goes through the roof, hanging out consistently in the high 90% range.  The program becomes almost unusable whenever I choose the text tool.  After choosing the text tool, I get the continual spinning hour glass, the black bar at the top of the screen shows up with (not responding) and if I try to click anywhere the screen goes faded and it's a crap shoot whether or not it comes back or I get the "program is not responding" box.  After closing PS, my memory almost instantly drops to it's normal levels of between 30 and 40%.
    Like I said, this has only been happening for about a month (maybe less) or so.  Is there anyone out there that can help?
    Thanks, Dave

    First of all, I want to say thanks for all the help so far.
    OK, I called my brother-in-law and it turns out that he didn't install just a few fonts, he installed a few font packs, totalling about 4,000 fonts .  I've gone through and deleted every one, other than system fonts, and the text tool responds a lot faster, but the memory issue is still plaguing me.  Granted it's not nearly as bad as before, but it's still pretty slow.  I checked the memory allocated to PS, and I've got 2 gigs total and a little less than 1 gig available to PS.  My scratch disks (not really sure what those are) are my D and an external HD.  Is there anything else I can check to speed this program up?

  • Audio Recording "What you Hear" not available!

    I have recently assembled my system with MSI-X58-PRO-E. And installed Windows 7.
    When I tried to record audio that is playing on my system, the "What you Hear" option could not be selected in Audacity. Or any other recording software.
    Is this because of Realtek drivers? Could this be solved by installing new drivers, or I have to buy a discrete sound card?!?!!! 
    Any help is appreciated...

    thanks for suggestion, will try it and post thje results soon.

  • Audio recording, chipmunk voice and stuttering?!

    Hi all, I use the Elgato Game Capture HD with my MacBook Pro to record gaming videos. I use a standard USB headset with a mic to record live commentary over the top, this setup has always worked fine for me, until yesterday.
    After recording my video, when I started editing it, I realised that in recording, the audio had caused my voice to go extremely high pitched, stutter and therefore out of sync with the video and then after about 5 minutes it just completely cut off.
    I thought at first this was a problem with the mic, so I used my more professional mic which is a Zoom Handy Recorder H2 and plugged it in via USB. Same problem. So then I thought, it must be the Elgato recording software. Tried using Audacity to record some audio, it was fine once and then same problems. Which makes me think it's something to do with my MacBook?!
    If anyone's had a similar problem or would even know how I would start to tackle this issue, i'd be incredibly grateful!
    Thanks in advance!

    I have a 5c, and here is how I was able to trim a test recording:
    1. Open the recording file in Voice Memos.
    2. Tap "Edit" at the bottom. It's between the arrow-up symbol and trash can.
    3. On the right side, near the bottom-right corner you'll see a blue box with a round blue dot at the top-left corner of it, and another one at the bottom-right. This is the Trim button. Tap it.
    4. You should now see the recording with the "wavelengths", a vertical blue line (with a blue dot at top and bottom), and on each side a red line (also with red dot at top/bottom).
    5. Touch the left red line and you'll notice you can touch/drag it to the beginning point of your desired portion of the recording.
    6. Touch the right red line and touch/drag it for the recording's end point.
    7. Hit the Play button to play just the trimmed portion, making sure it's what you want.
    8. Once it's what you want, touch "Trim". Up pops "Trim Original" or "Save as New Recording".
    On emailing it, go to the trimmed copy and click the arrow-up symbol, which will allow you to either message or email it.
    EDIT: I found you can name your recording file to what you want by tapping the default name of it. A cursor will appear where then you can delete and retype a custom file name. Great for emailing so you recipients will know what it is by looking at it.
    Message was edited by: Marble Rye

  • Only Audio source CD PLAYER and not change to LINE IN

    Hi....
    i have  msi 915G Combo mainboard  audio (cmi 9880l) and Tv Anywhere Master . i have problem with audio source for change to LINE IN
    updated all drivers ( sound & tv anywhere ) please help about this...
    Thanks

    Hi all,
    thanks for the replies. I'll try to explain better my scenario:
    Pretend that a WM-Transfer Request was already created for a series of material linked to a certain Production Order --> 4 items in that case
              I've got a Production Order BOM with 4 components. So the system creates a WM-TR with 4 different items:
    Material A123
    Material B321
    Material C143
    Material D312
              Maybe no one will process this TR due to the fact that the Picking Date is far from today.
              So the Warehouse Supervisor didn't convert it into a TO.
    Maybe the day after, the Warehouse operator recognize that the stock of the material B321, is not correct. SAP is misaligned with the reality.
            So, using MM-562 movement type and related TO, he set to 0 the quantities.
    After this changes, the Warehouse Supervisor try to convert this TR into a TO using "TO IN BACKGROUND" button:
    Material A123 - stock at system level
    Material B321 - NO stock at system level
    Material C143 - stock at system level
    Material D312 - stock at system level
    This error message appear and NO TO were created.
    There's any way to modify this behavior?
    Is possible (like VL06P) to set up a customizing or user exit that can skip only the item that are not pickable??
    My expectation is to have a TO with only the 3 item that I can pick.
    In our system we didn't accept negative quantity, as for Client requirement.
    Thanks a lot
    Marco

  • Unhappy Face and Not Working Disk Mode

    I am getting an unhappy face when i try to open my ipod, my windows doesnt recognize the ipod also. So I decided to run in disk mode and restore the Apple Software. The problem is when I run my iPod in Disk Mode and when I connect it, my iPod reboots, and my computer sees the iPod as removed. Could anyone help me about this.
    p.s. I am using firewire connection and it is working I used it with another iPod.
    Pc/ p4 2.666 ghz   Windows XP Pro  

    Hi Alp,
    I'm Alp;) did find a solution for your problem..
    Not: adamlara ayip olmasin diye ingilizce yazdim idare et! halledebildin mi sorununu?!

  • How to export audio timeline as PCM and not AAC?

    Well this is something I have not come across before and unfortunately, I have not founjd an answer.
    As you can se from the attached screen shot, I have an audio sequence that is comprised of many pieces, all of which come from uncompressed PCM sound capture. They are aiff files.
    Anyway, if I try to export that sound sequence as Audio Only, my only option is as AAC, which is compressed. That cannot be an option. I need to output as PCM. Under no circumstances can I compress the sound down to a lossy format like AAC or Dolby Digital.
    But I don 't see how to make it happen.
    Any ideas? I also don't see how it is possible to export to Soundbooth. That can only be done with a single clip.
    I do see export as an AAF file, but I have no experience with that. Would that work and then I open in Soundbooth and I save as a PCM wave file?
    With that I see options to "Save as legacy AAF" and also "Embed Audio."
    I'm lost. Oh yes, I am on a PC and have CS5 Production Premium.

    No, if I choose audio only, I have AAC as the only option.
    Now I just noticed I somehow missed I can export as an aif and will do that now and see if I can put it in Soundbooth and covert to PCM.
    Not ideal.

  • What Mac should i get for serious Audio recording, Video editing and Graphic's?

    Hey im new to Macs and i want to upgrade to one. My question is what one?.. My current system is not powerfull enough to handle what i am doing and i want to upgrade. I plan on using the mac for serious music recording with protools or cubase, video editing and effects with adobe premiere pro and after effects and graphics and web type stuff the rest of the adobe collection.. ex photoshop, dreamweavor, flash, illistrator, etc. So pretty much i need it to handle the adobe cs5.5 master collection and a music recording daw without bogging down. I do serious music recording and video editing and effects that need power behind it and runs smoothly. Any tips, tricks, advise, etc would be greatly appreachated!. Btw im a college student and plan on getting the discount prices in the adobe collection and hopefully the mac and would like to get the best quality computer for the best price!
    Thanks!

    Buying refurbs from Apple is a great idea - except for my current iMac, all my Macs have been refurbished. However, I would only get a factory refurb from Apple - they come with the same warranty as new units and you can buy Applecare to extend that to a total of 3 years. And, as far as I know, the Apple online store is the only place where you can get factory refurbs.

  • Audio recording using Logic and Mbox

    Sirs,
    I've to import vinyl using Logic and the Mbox (Digimedia) card. Does anyone have experience in such kind of operation?
    Thanks in advance for your help.
    titanium 1ghz   Mac OS X (10.3.8)   Logic Platinum 7.1 - Mbox audio card

    No MBox, but I just patch my turntable into a phono preamp I bought at Radio Shack about 25 years ago (in order to have RIAA equalization) and the preamp outs into your interface and you can record like normal.

  • How do I create a back up of Elements if I buy the download and not the disk, in case I ever change computers?

    Hi everyone
    My previous laptop recently crashed and I know have a Windows laptop for which I would like to buy Elements (I had Photoshop for Mac which I can now no longer use). How do I go about creating a back up of the software if I buy the download, just in case something should happen to my current laptop?
    Thank you!

    When you download it, choose to save the file, not just run it, and make a copy of the download someplace safe.

  • Ipod Nano chromatic - audio recording enabled? or not?

    Simple question
    Does it record audio? IF so, how is the quality?
    What format?

    Isn't there realy nobody, who could help me?
    I need the information strongly...

  • Quarter-inch female to a 3.55mm male to connect guitar to my Ipod Touch 4th gen. It still records from mic and not from wire.

    Hey everyone, I recently bought a quarter-inch female to a 3.55mm male to connect my acoustic electric guitar to my Ipod Touch 4th gen. Now when I connect it, it doesn't actually take the sound from the wire, it still keeps the mic open. Any suggestions?

    You can try putting the iPod into Recovery Mode and restoring it:
    http://support.apple.com/kb/ht1808
    If that doesn't work, then sorry but the jailbreak may have permanently corrupted your iPod. Since we cannot help with jailbroken devices in these forums, you'll need to look elsewhere for additional suggestions and advice.
    Regards.
    Message was edited by: Dave Sawyer

Maybe you are looking for

  • Can't launch debugger

    Hello, I can't launch the debugger anymore in NWDS sp13. When I do I get the follwing error: Exception occurred during launch Reason: Source locator does not exist: org.eclipse.jdt.debug.ui.javaSourceLocator I was debugging fine last night before shu

  • RE: G3 iBook transfer via firewire to MBP...questions

    hello everyone, forgive me if this is the wrong section...but can someone help me with this... i have transfered all my necessary files from my iBook to my MBP (via firewire)but now i can not get my old entrouge to over ride/replace the one on my MBP

  • Table for payment term

    Please let me know the Table for payment term David

  • Can't get form items

    Hello everyone, I have a form that I loaded from a xml file created on Screen Painter. In my Item Event FORM_LOAD, I need to get it's items. I get the form with success, but the items count is always 0. Does anynoe has an idea why this is happening?

  • Question about push registry

    hello, I'm a beginner in j2me and I'm developing an application that receive a message via socket, and I want my application to be always ready to receive the message even if it not running. I thought of static push registry put the thing I couldn't