Re: Capturing Data coming OUT of an AUGraph
Re: Capturing Data coming OUT of an AUGraph
- Subject: Re: Capturing Data coming OUT of an AUGraph
- From: pwicker <email@hidden>
- Date: Sat, 19 Feb 2005 13:05:59 +0100
On Feb 19, 2005, at 12:30 PM, Mark Gilbert wrote:
Folks.
I have an AUGraph which is primarily data being pulled into a Matrix
Mixer feeding an output device.
I want to 'tap into' the data which has been mixed and is on its way
out, so I can record it to disk.
Is there a simple callback I can insert to get this data as it passes
through, without radically rewiring my architecture ?
I don't know well the AUGraph so I may be wrong. As far as I know, you
don't have such a callback. What you could do is write a special AU
that you could insert in front of your graph. Within the Render
callback of this AU you should pass the audio buffers to a worker
thread using a non blocking FIFO or ring buffer. This worker thread
would then write the audio to the disk. What you must never do is call
a disk API from the render callback. I believe there's a sample code in
the SDK which shows how to deal with a disk writer thread
(DiskWriterAUGraph I think but not sure).
Thanks
Mark Gilbert.
--
email@hidden
Tel: +44 208 340 5677
fax: +44 870 055 7790
http://www.gallery.co.uk
New Product ! - Zen MetaCorder
Location Sound Field Recorder
http://www.metacorder.info
_______________________________________________
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
Philippe
_______________________________________________
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