Re: AUGraphInitialize in audio thread
Re: AUGraphInitialize in audio thread
- Subject: Re: AUGraphInitialize in audio thread
- From: Bill Stewart <email@hidden>
- Date: Wed, 9 Apr 2003 12:14:50 -0700
Marc,
On Tuesday, April 8, 2003, at 02:11 PM, Marc Poirier wrote:
I was testing an AU of mine this weekend and encountered a problem with
host apps that utilize AUGraphs (SynthTest, Rax). It appears that they
Initialize AUs in the audio rendering thread. I am working on an AU
that
displays a StandardAlert dialog when Initialized if it has not been
authorized yet ("Hello, you are running this in demo mode, blah blah
blah"). In these host apps, if rendering of the graph is taking place
while instantiating my plugin, the app hangs. The alert partially
draws,
maybe, and there's a spinning beach ball, and after I while I just
force
quit the app.
I'm not sure that displaying a dialog from an AU that shouldn't be or
need to use ANY UI frameworks is actually kosher. Can't you do this in
your UI component when it is displayed?
I contacted the authors of these hosts and they told me that the issue
must be with AUGraphInitialize. They said that they are calling
AUGraphInitialize from the GUI thread, so it must be what happens
internally with the AUGraph stuff. So, I'm bringing this up because
I'd
like to know what's up with all this. Is my AU in fact just behaving
badly, or should the AUGraph be behaving better? I'm voting on the
latter
because my understanding of Initialize is that you should be able to do
heavy operations and resource management there, and that a rendering
graph
should not be waiting an an uninitialized AU to return from an
Initalization attempt. But maybe I'm wrong about this...
There are some subtlies about AUGraph mechanics that need to be better
implemented on our part, and better understood on developers part (once
we explain it better!) - this is partly our fault.
I'm in the process of getting a doc together to explain this - I'll
post this sometime
(If people want to contact me privately to go over the nitty gritty -
please do)
Bill
Thanks for your attention,
Marc
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.
--
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
________________________________________________________________________
__
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.