Re: CocoaAUHost example crasches
Re: CocoaAUHost example crasches
- Subject: Re: CocoaAUHost example crasches
- From: William Stewart <email@hidden>
- Date: Mon, 29 Jan 2007 12:14:32 -0800
On 28/01/2007, at 3:59 AM, Roni Music wrote:
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.
Yes - this a threading problem in the view. We've fixed this for Leopard
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?
that's the solution (at least from your end)
Bill
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
--
mailto:email@hidden
tel: +1 408 974 4056
________________________________________________________________________
__
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
________________________________________________________________________
__
_______________________________________________
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