Re: Reliably finding the binary for an audio unit from a host
Re: Reliably finding the binary for an audio unit from a host
- Subject: Re: Reliably finding the binary for an audio unit from a host
- From: tahome izwah <email@hidden>
- Date: Sat, 09 Jul 2011 10:45:49 +0200
That's quite easy, actually.
Check out -showCocoaViewForAU in CAUHWindowController.m that comes
with the CocoaAUHost project. It shows you how to get the view factory
and the path to the bundle:
AudioUnitCocoaViewInfo *cocoaViewInfo =
(AudioUnitCocoaViewInfo *)malloc(dataSize);
if(AudioUnitGetProperty( inAU,
kAudioUnitProperty_CocoaUI,
kAudioUnitScope_Global,
0,
cocoaViewInfo,
&dataSize) == noErr) {
NSURL *CocoaViewBundlePath =
(NSURL*)cocoaViewInfo->mCocoaAUViewBundleLocation;
}
HTH
--th
2011/7/7 Stefan Gretscher <email@hidden>:
> Am 07.07.2011 um 08:59 schrieb tahome izwah:
>> - (NSString *)bundlePath gets you the path to the bundle, once you have identified it.
> Sure, but the question actually is how do I identify it in first place?
>
> -Stefan
_______________________________________________
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