Re: Custom properties and stopping a graph
Re: Custom properties and stopping a graph
- Subject: Re: Custom properties and stopping a graph
- From: ipmlists <email@hidden>
- Date: Wed, 9 Dec 2009 11:13:44 +0000
Thanks Bill - I really should have figured that one out :)
Iain
2009/12/7 William Stewart <email@hidden>:
> you don't need to stop the graph.
>
> one of the main features of AUGraph is the ability to change its state while the graph is running.
>
> So, you'd still need to do the disconnect, but do that, call AUGraphUpdate (which will make the disconnection the next time the graph is rendered), and then you can go ahead and do your edits (AUGraphUpdate can be run in a synchronous mode, which is what you would want here)
>
> Bill
>
> On Dec 7, 2009, at 4:13 AM, ipmlists wrote:
>
>> Hi,
>>
>> I've written an effect AU, which contains an AUGraph, which in turn
>> contains two effect AUs and an output AU. In its ProcessBufferLists
>> function, the wrapper AU calls AudioUnitRender on the head node of the
>> graph, and a renderProc is set on the first node of the graph, to pull
>> data from the wrapper AU's input buffer.
>>
>> The first of the embedded AUs has some custom properties which are
>> user-configurable, and changing them requires processing to be halted.
>> I'm currently doing this by calling AUGraphStop, then
>> AUGraphDisconnectNodeInput on the second node, changing the
>> Properties, then repeating the above in reverse order.
>>
>> This works - that is, it doesn't crash, and the interruption to the
>> audio stream is brief - but it seems a pretty crude approach, and I
>> strongly suspect it's not the right way to go about this - am I right?
>>
>> thanks,
>>
>> Iain
>> _______________________________________________
>> 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