|[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]|
On Feb 19, 2005, at 12:30 PM, Mark Gilbert wrote:
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).
Tel: +44 208 340 5677
fax: +44 870 055 7790
New Product ! - Zen MetaCorder
Location Sound Field Recorder
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
|>Capturing Data coming OUT of an AUGraph (From: Mark Gilbert <email@hidden>)|
|>Re: Capturing Data coming OUT of an AUGraph (From: pwicker <email@hidden>)|
Visit the Apple Store online or at retail locations.
Copyright © 2011 Apple Inc. All rights reserved.