Re: rendering to a file from an AUGraph (iphone)
Re: rendering to a file from an AUGraph (iphone)
- Subject: Re: rendering to a file from an AUGraph (iphone)
- From: William Stewart <email@hidden>
- Date: Fri, 12 Feb 2010 17:30:28 -0800
looks fine. but you need to look at the code some more. it shows you
how to deal with the graph to write a file
On Feb 12, 2010, at 2:25 PM, Wil Macaulay wrote:
Thanks for the quick response - I've taken a quick look at the
PlaySequence code, but that's for
MacOS, and I'm working on iPhone. I guess the more general question
is: can the generic io AU be used to
start the AUGraph and trigger the rendering chain?
Here's the result of CAShow() on the AUGraph after I've finished
initializing it:
AudioUnitGraph 0x5690066:
Member Nodes:
node 1: 'auou' 'genr' 'appl', instance 0x3c884e0 O I
node 2: 'aumx' 'mcmx' 'appl', instance 0x3c576b0 O I
Connections:
node 2 bus 0 => node 1 bus 0 [2 ch, 16000 Hz]
Input Callbacks:
{0x146aa, 0x601f270} => node 2 bus 0 [2 ch, 16000 Hz]
{0x146aa, 0x601f270} => node 2 bus 1 [2 ch, 16000 Hz]
{0x146aa, 0x601f270} => node 2 bus 2 [2 ch, 16000 Hz]
{0x146aa, 0x601f270} => node 2 bus 3 [2 ch, 16000 Hz]
{0x146aa, 0x601f270} => node 2 bus 4 [2 ch, 16000 Hz]
{0x146aa, 0x601f270} => node 2 bus 5 [2 ch, 16000 Hz]
{0x146aa, 0x601f270} => node 2 bus 6 [2 ch, 16000 Hz]
CurrentState:
mLastUpdateError=0, eventsToProcess=F, isRunning=F
On Fri, Feb 12, 2010 at 4:08 PM, William Stewart <email@hidden>
wrote:
see the PlaySequence example code (it is an option to write to a
file)
On Feb 12, 2010, at 1:03 PM, Wil Macaulay wrote:
I have a working AUGraph with a mixer unit connected to a RemoteIO
unit, which sends output to the speaker as expected. I'd like to
write the resulting mix to a file. I am trying to follow this
strategy:
- replace the remoteIO unit with a generic io unit
- put a renderProc on the generic io unit that writes the mixed
stream
to a file
- start the AUGraph
I have a property change listener on the generic io unit which
indeed
shows me that the unit is being started, but my renderProcs on the
mixer input buses and the one on the generic IO unit are not being
invoked
Is what I'm trying to do incorrect, or have I just missed some
configuration step?
thanks
wil
_______________________________________________
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
_______________________________________________
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