Re: AudioUnit of the uncommon path
Re: AudioUnit of the uncommon path
- Subject: Re: AudioUnit of the uncommon path
- From: kelly jacklin <email@hidden>
- Date: Thu, 7 Jul 2005 05:57:06 -0700
On Jul 7, 2005, at 1:53 AM, Hae-seong, Zo wrote: How can I locate an AU with the path of the bundle, without type,subtype,manufacture,etc. Is there any way for loading an AudioUnit component that is in the arbitrary path? I mean, I want to load an AU that is NOT in the follow specific paths :
/Library/Audio/Plug-in/Components/ /Users/Yourname/Library/Audio/Plug-in/Components/
You can use RegisterComponentFileRef to cause the components (AudioUnits) from an arbitrary bundle to be registered within the current process, for example:
FSRef ref; OSStatus status; Boolean ignore; status = FSPathMakeRef("/Application/Foo.app/Contents/Resources/MyAudioUnits.component", &ref, &ignore); if (status == noErr) { status = RegisterComponentFileRef(&ref, FALSE); // ... }
You then use FindNextComponent to actually locate the components you just registered.
kelly
|
_______________________________________________
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