"Recording" generated audio to AAC (or anything)
"Recording" generated audio to AAC (or anything)
- Subject: "Recording" generated audio to AAC (or anything)
- From: Daniel Jalkut <email@hidden>
- Date: Mon, 16 Jan 2006 19:18:02 -0500
I searched the archives for pertinent information, but maybe it's
just too much for me to put all the pieces together.
I'm looking for high-level guidance on the "best way" to take
application-generated audio and spit it into an AAC file. For
example, a simple "timed routine prompter" I'm working on needs to be
able to spit AIFF data into a file at regular intervals. But I'd
ultimately like to be able to mix in DLS synth audio, etc.
The complicating factors, as I see them now are:
1. Audio may come from numerous sources and may overlap.
2. Audio should "spit to disk" as fast as possible, not at playback
speed.
I'm thinking I'll piece something together based on the
"AudioFileTools" examples. I figure I'll set up an AUGraph with a
mixer whose inputs get mixed into the final output. I'll be
responsible for coercing data into PCM format for the mixer, and for
hooking up the output of the mixer to an AAC converter and ultimately
to a "write to file" mechanism (probably as demonstrated by afrecord
or something).
I assume that the way to run an AUGraph "as fast as possible" is to
repeatedly call AudioUnitRender() on it until it's exhausted. Is
this right?
Does this sound like a reasonable approach? Any obvious helpers that
I'm missing?
Thanks for your help!
Daniel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden