Re: registering memory based AU's
Re: registering memory based AU's
- Subject: Re: registering memory based AU's
- From: Marc Poirier <email@hidden>
- Date: Mon, 21 Feb 2005 10:29:20 -0500
On Feb 21, 2005, at 9:56 AM, Ron Moreland wrote:
I'm trying to create an Application specific AU that I would like to
simply instance and register with the component manager on the fly.
Does anyone have an example of instancing an AU in memory and
registering it? I've found bits and pieces in my docs but I can't put
it together. For instance:
Component RegisterComponent ( //
IV-2806
ComponentDescription *cd, //
IV-2359
ComponentRoutineUPP componentEntryPoint, //
IV-2819
short global,
Handle componentName,
Handle componentInfo,
Handle componentIcon );
I think that what is probably easier is creating a regular AU and
putting it inside your application bundle. Then you can use the
CFBundle API to get the CFURLRef to it, convert that to an FSRef, and
then use RegisterComponentFileRef().
There is a macro "COMPONENT_ENTRY()" in the SampleEffectUnit.cpp that
probably creates a ComponentRoutineUPP but I haven't found the macro
definition, or an explanation of how to use it.
If you're using Xcode or Project Builder, you can command-double-click
on things like that and it will take you to the definition (once your
project containing the file has been indexed).
Marc
_______________________________________________
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