Re: Need Help! Saving AU result.
Re: Need Help! Saving AU result.
- Subject: Re: Need Help! Saving AU result.
- From: email@hidden
- Date: Fri, 01 Aug 2003 17:22:20 -0700
"" writes:
>
I tried to capture audio directly from a microphone and to process
>
the signal through several effects. At the end there is the Default
>
Output Unit and it works well. Now I'd like to save my result. I
>
tried to attach a notification by using AudioUnitAddRenderNotify and
>
setting a new IOProc in order to get the ioData (AudioBufferList *),
>
I mean the IOProc is different from the one I used to feed the
>
converter unit at the beginning of the chain of the audio units,
>
it's role is simply to copy the ioData->mBuffers[i].mData to a new
>
location.
Ouroboros does something like this. Though it code definately be made
more robust, you can look at the source for a starting point:
http://www.mat.ucsb.edu/~c.ramakr/illposed/ouroboros.html
I do pretty much what you describe -- I added a render notify proc to
the output unit, and on a post render callback, i write the contents
of the AudioBufferList into a ring buffer. I have another thread
running which reads from the ring buffer and writes to disk (though i
use libsndfile, not the AudioFile API).
- sekhar
--
C. Ramakrishnan email@hidden
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.