Re: capturing AUGraph output
Re: capturing AUGraph output
- Subject: Re: capturing AUGraph output
- From: Chandrasekhar Ramakrishnan <email@hidden>
- Date: Sun, 05 Oct 2003 07:08:45 -0700
Christopher Corbell writes:
>
Given an AUGraph that terminates in a default
>
output device, how can one capture or copy the
>
output audio data? I want to grab the data
>
after all of the effects in the chain etc.
>
have been applied.
I think the easiest way to do this is to add a render notification
callback to the graph. In the callback, check that the PostRender flag
is set and if so, copy the data to your buffer.
The source code to Ouroboros
<
http://www.mat.ucsb.edu/~c.ramakr/illposed/ouroboros.html> gives an
example of doing this, though there probably is a better example out
there.
(Actually Ouroboros adds a render notification to the mixer, not the
graph, because I want to get the buffer in a deinterleaved form, not
in the devices native format, but the idea is basically the same).
- 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.