Re: Dispatch
Re: Dispatch
- Subject: Re: Dispatch
- From: William Stewart <email@hidden>
- Date: Mon, 14 Jun 2004 11:26:48 -0700
AUDispatch and its debug version are there primarily to dispatch calls
made to your AU through its API.
Basically:
An AU is a component, which implements a collection of selector for its
collection of functions (see AUComponent.h)
A component exports a single symbol, which is an entry point of a
static function that basically contains a switch statement, where the
cases are the collection of codes for each function (and some generic
component manager API (like GetComponentVersion)
When an application calls an AU API (for instance, AudioUnitInitialize)
the component manager turns that into a call into the particular
component's dispatch call with the selector for "AudioUnitInitialize"
The dispatch routine's case statement, then turn that around (in our
case) to an instance method call (Initialize) on the component's
refcon's "this" pointer (which is an instance of the C++ AUBase object)
The debug version defines a collection of logging code in AUDispatch to
log all of the calls made to an AU with information about each call...
You'll have to look up "dispatch" in a dictionary - think for instance
of a taxi phone operator - you make the call, then a driver is
dispatched to pick you up at your address :-)
Bill
On 13/06/2004, at 6:28 AM, Toine Heuvelmans wrote:
>
What's the function of the AUDebugDispatcher and AUDispatch files?
>
I'm Dutch so I don't even know exactly what the word 'dispatch'
>
means...
>
>
Greetings
>
Toine Heuvelmans
>
email@hidden
>
_______________________________________________
>
coreaudio-api mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
>
Do not post admin requests to the list. They will be ignored.
>
>
--
mailto:email@hidden
tel: +1 408 974 4056
________________________________________________________________________
__
Culture Ship Names:
Ravished By The Sheer Implausibility Of That Last Statement [GSV]
I said, I've Got A Big Stick [OU]
Inappropiate Response [OU]
Far Over The Borders Of Insanity And Still Accelerating [Eccentric]
________________________________________________________________________
__
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.
References: | |
| >Dispatch (From: Toine Heuvelmans <email@hidden>) |