CocoaAUHost example crasches
CocoaAUHost example crasches
- Subject: CocoaAUHost example crasches
- From: Roni Music <email@hidden>
- Date: Sun, 28 Jan 2007 12:59:50 +0100
Hi,
I'm checking out the CocoaAUHost example and there seems to be bug in
the AUGenericView class.
When loading certain plugins, it crasches when calling
[(AUGenericView *)AUView setShowsExpertParameters:YES];
It seems that
AUView = [[AUGenericView alloc] initWithAudioUnit:inAU];
returns before the view is setup and ready.
Letting the current thread "sleep" for a couple of milliseconds cures
the problem
but is obviously just a hack.
if (!wasAbleToLoadCustomView)
{
// [B] Otherwise show generic Cocoa view
AUView = [[AUGenericView alloc] initWithAudioUnit:inAU];
usleep(100000);
[(AUGenericView *)AUView setShowsExpertParameters:YES];
}
Is this a know problem or should I report it to Apple Bug Reporter?
Or is there another solution?
Thanks,
Rolf
_______________________________________________
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