Re: Passthru AudioUnit that saves its input to file?
Re: Passthru AudioUnit that saves its input to file?
- Subject: Re: Passthru AudioUnit that saves its input to file?
- From: Craig Bakalian <email@hidden>
- Date: Sat, 28 Feb 2004 01:56:53 -0500
On Feb 28, 2004, at 1:00 AM, email@hidden
wrote:
Could you save up enough buffers and then do your write to the file at
callback time, or is an expensive operation like writing to the file a
bad
idea while handling a buffer of audio?
You need to read Examples/CoreAudio/Services/DiskWriterAUGraph. I know
it isn't an AudioUnit, but the same principle resides in its machinery.
It creates
a file, and writes bytes to it while it is rendering AudioBuffers, with
CAP Threads
all over the place. I reworked it, made it Objective C, took the
CAPThreads out,
and wrote buffers to memory and then wrote bytes to file. It works,
but I am still
testing it.
I don't know about writing a unit like this in a night or two. It took
me longer : >)
Craig Bakalian
www.eThinkingCap.com
_______________________________________________
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.