Re: AU Views, 'thng' versus ComponentEntryPoint::Register
Re: AU Views, 'thng' versus ComponentEntryPoint::Register
- Subject: Re: AU Views, 'thng' versus ComponentEntryPoint::Register
- From: William Stewart <email@hidden>
- Date: Mon, 27 Mar 2006 11:57:18 -0800
We do this ourselves....
We have multiple components for the same entry point - for instance,
we have two versions of the AUTimePitch (one 'aufc', the other
'auol') These are just two different thng resources with the same
entry point.
The component has a single entry point, but that entry point can
dispatch internally of course if you want to provide that level of
indirection.
You can register components at any time - but as I said you will
probably have a problem if these are registered too late in the
process - most hosts are going to build up a list of the AUs at some
point (often in their launch actions), and with caching, component
versions, etc, there is NO GUARANTEE that they will open a component
instance during this time. So, in this case, none of your code would
be executed and you would have no opportunity to do anything. There
is no way for the component manager to communicate to a host that the
component list for a given comp type is stale... I doubt that would
be added either.
Registering views is probably OK (because you really have to have an
AU open before you deal with its view)... I'd be less inclined to
register AUs using this mechanism.
Bill
On 27/03/2006, at 1:27 AM, Angus F. Hewlett wrote:
A good point... normally, any given AU component will provide a
'thng' for each plugin (and optionally for each view, though the
view can be dynamically registered). The question is, can an AU
component provide a single 'thng', and then register further
plugins when the first one's entrypoint is called?
=========================================================
Angus F. Hewlett, Managing Director (CEO)
FXpansion Audio UK Ltd - http://www.fxpansion.com
Registered in the UK - #4455834 - VAT: GB 798 7782 33
=========================================================
Kenneth Weiss wrote:
Bill,
We use the 'thng' because we have multiple plugins within one
component so we need many entry points,
Is it possible to use the ComponentEntryPoint's for multiple
entry instead?
Kenneth
Kenneth Weiss,
Audio Software Engineer
email- email@hidden
phone- 972-3-6084023
On Mar 24, 2006, at 9:41 PM, William Stewart wrote:
On 23/03/2006, at 2:17 PM, Angus F. Hewlett wrote:
Hi all,
Looking at ours and some other AUs, there seem to be two
different ways that an AU can register its View component with
the system:-
-- via ComponentEntryPoint<CViewClass>::Register()
This is dynamic - that is the view is being registered by code
being executed
-- via a 'thng' resource describing the View, and the
COMPONENT_ENTRY macro.
This is static - the view is registered by the component mgr
code based on the resource entry. In general this is the
preferred option as it doesn't require any of your code to
execute in order for you view to be discoverable; though the
difference here is minimal from what I can surmise.
Bill
Is one preferred over the other? Both seem to pass auval OK, as
far as I can tell.
Best regards,
Angus.
--
=========================================================
Angus F. Hewlett, Managing Director (CEO)
FXpansion Audio UK Ltd - http://www.fxpansion.com
Registered in the UK - #4455834 - VAT: GB 798 7782 33
=========================================================
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40apple.com
This email sent to email@hidden
--
mailto:email@hidden
tel: +1 408 974 4056
____________________________________________________________________
__ ____
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry
Pratchett
____________________________________________________________________
__ ____
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40waves.com
This email sent to email@hidden
--
mailto:email@hidden
tel: +1 408 974 4056
________________________________________________________________________
__
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
________________________________________________________________________
__
_______________________________________________
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