Re: One Cocoa view for multiple AUs?
Re: One Cocoa view for multiple AUs?
- Subject: Re: One Cocoa view for multiple AUs?
- From: ipmlists <email@hidden>
- Date: Sat, 7 Nov 2009 22:44:03 +0000
Hi,
this is partially a repost from a few weeks ago - I haven't had time
to look at the problem since but perhaps now have a better idea of how
to ask the question! Reposted part explaining the background follows:
-------------------------------------------
I've written an effect AU which contains an AUGraph, which in turn
contains two AUs (my own) plus a Generic I/O unit.
All three of my AUs are built into one .component bundle, and the two
AUs in the graph are registered during the 'wrapper' AU's Initialize()
function.
So far so good, I think - audio is being processed as expected.
I want to use a single Cocoa view for all 3 of my AUs, and I've set
each GetProperty method to use the wrapper AU's view. I've also, at
the moment, declared the graph and nodes in a header file shared by
all AUs.
My Cocoa view displays ok, but so far I've had no success
communicating from the view to the 'wrapped' AUs - bad component
instances and -50 errors - which I assume is because the AUGraph isn't
actually instantiated at the point when the view is created?
-------------------------------------------
Ian Kemmish gave me some good advice, but I think my problem is rather
more fundamental (and probably simpler) than stated above: how should
communication be set up between the view and those AUs which are
embedded in the wrapper AU (since the default setAU method only deals
with the wrapper AU)?
I've made some (unsuccessful) attempts at passing pointers to the
AUGraph and nodes as custom properties, but this feels like the wrong
thing to be doing, and certainly violates the principle of separation
between view and AU(s).
Is there a 'correct' way to do this?
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