Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

palav2004

macrumors newbie
Original poster
Jan 27, 2006
7
0
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.
 

palav2004

macrumors newbie
Original poster
Jan 27, 2006
7
0
Is it possible using Core Audio API?

Is combining audio tracks possible using Core Audio API?
 

palav2004

macrumors newbie
Original poster
Jan 27, 2006
7
0
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
 

HiRez

macrumors 603
Jan 6, 2004
6,265
2,629
Western US
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).
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.