how to combine audio tracks

Discussion in 'Mac Programming' started by palav2004, Jan 31, 2006.

  1. macrumors newbie

    Joined:
    Jan 27, 2006
    #1
    hi guys,

    I m using core audio API's to play multiple files at single time. I m successful in that. Now my aim is combine these multiple tracks & save it(combined single file) to a disk.

    Is this possible by using coreaudio api's?
    Please guide me.
     
  2. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    I've never used the audio APIs but I'd have thought the QuickTime APIs could do this if CoreAudio can't...
     
  3. thread starter macrumors newbie

    Joined:
    Jan 27, 2006
    #3
    Is it possible using Core Audio API?

    Is combining audio tracks possible using Core Audio API?
     
  4. macrumors 6502

    kwajaln

    Joined:
    Sep 18, 2004
    Location:
    CHICAGO!
    #4
    Can't this be accomplished in GarageBand?
     
  5. thread starter macrumors newbie

    Joined:
    Jan 27, 2006
    #5
    Re: combine audio tracks

    Hey guys,

    Actually I m writing cocoa program in which I m using core audio API's.
    So I have got this question that how to combine audio tracks.

    By By
     
  6. macrumors 601

    HiRez

    Joined:
    Jan 6, 2004
    Location:
    Western US
    #6
    You probably want to combine the tracks using a mixer AU (like MatrixMixer or StereoMixer). Then send the output of that to a FileWriter unit (I think you'd want to set the offline rendering property here). If you need to hear it at the same time, things get trickier I think, because you can only have one output per graph. In that case you need to tap off another unit's buffers from the render callback, copying the data out of the callback function on each pass and manually writing the data to a file in a separate thread. I believe there's an example that does this somewhere (maybe the AULab app included with the Developer install).
     

Share This Page