Re: What Are AudioUnits?
Re: What Are AudioUnits?
- Subject: Re: What Are AudioUnits?
- From: Philippe Wicker <email@hidden>
- Date: Thu, 7 Oct 2004 08:19:44 +0200
On Oct 7, 2004, at 7:40 AM, Daniel Todd Currie wrote:
tech note 2091 says to do this:
Component comp;
ComponentDescription desc;
desc.componentType = kAudioUnitType_Output;
desc.componentSubType = kAudioUnitSubType_HALOutput;
desc.componentManufacturer = kAudioUnitManufacturer_Apple;
desc.componentFlags = 0;
desc.componentFlagsMask = 0;
comp = FindNextComponent(NULL, &desc);
if (comp == NULL) exit (-1);
OpenAComponent(comp, &InputUnit);
your type should be 'aufx', your SubType a 4-char constant with at
least an uppercase letter (e.g. 'Ptch') and your manufacturer your
unique ID (creator code) that you must get from Apple at:
http://developer.apple.com/datatype/creatorcode.html
This grabs the Apple: AudioDeviceOutput component, but if I am trying
to list my own AU in the AUValidation, I assume I need to make my own
component? I don't see anything anywhere about making new components.
For that matter, an Xcode search of all frameworks for the
"FindNextComponent" or "OpenAComponent" functions returns nothing.
I think if I can figure out how to test my AU in the AUValidator, I
will be better able to resolve some of these questions about how AUs
work.
I've poked around in some of the AU examples in "/Developer/Examples",
but sweet christ some of those projects are over 10,000 lines of code,
surely there must be some less complex examples?
You can start with the MultitapAU sample in the SDK. You don't have a
lot of things to do to "create" a component. Look into MultitapAU.r for
ENTRY_POINT keywords. They define the name of your AU and AUView
components. Now have a look to MultitapAU.cpp (resp.
MultitapAUView.cpp), it contains the declaration
COMPONENT_ENTRY(MultitapAU) (resp. COMPONENT_ENTRY(MultitapAUView)).
These macros define the name of the entry routine and some additional
glue of your components from the component manager point of view. And
last, have a look to MultitapAU.exp. It contains the names of the entry
routines from the linker point of view (that's why they are preceded by
an underscore char). Just replace "MultitapAU" with "MyPerfectPitch"
here and there and you're done. Don't forget to update the Xcode
projects properties so that it reflects the new name of your products.
-- DTC
On 2004 Oct 07, at 14:11, Philippe Wicker wrote:
Someone mentioned AUValidation to me, so I grabbed the validator and
played around with it. Running "auval -a" gives me a list of ~20
AUs; should my application/AU be listed among these?
Your AU should be listed, not your app.
My app is running on the "auou ahal appl - Apple:
AudioDeviceOutput" component, so should I be validating that
component while my app is running?
No. Hopefully the Apple AUs (should) have passed the auval test :))
_______________________________________________
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
Philippe Wicker
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