Re: notifying the UI from the process
Re: notifying the UI from the process
- Subject: Re: notifying the UI from the process
- From: William Stewart <email@hidden>
- Date: Thu, 26 Jan 2006 10:25:41 -0800
The idea of using a parameter for this notification is really
outmoded. Initially people did it so that you could call these
notification routines from your rendering/process function in a
thread-safe and real-time safe manner (because the listeners are
called on their own threads).
However, we generalised AUEvent listeners now to support property
notifications as well. So, your AU can just call the internal method
of AUBase (PropertyChanged) and your UIs can instaniate a property
listener using the AUEvent Listener mechanism and ensure that it
receives the property notification on its UI thread.
Then, your AU and UI can communicate in a thread-safe and real-time
safe manner. There's an example of this technique in the SDK in the
PulseDetector AU in DiagnosticAUs - and another example of defining
private properties in the AUFilter example in the SDK as well.
Bill
On 26/01/2006, at 4:06 AM, Nik Reiman wrote:
Huh, this is funny. I was about to post this exact same problem to
the list last night, but decided to sleep on it and see if a
solution came to me (it didnt'). Also, does anybody know how one
might get a pointer to the UI from the actual audio unit? I'm
afraid that using a parameter listener won't quite hack it for me,
because getting a C callback routine won't have access to the class
data I need to send to the GUI....
-Nik
Am 26.01.2006 um 07:00 schrieb Peter Thom:
I'm having problems notifying the UI from my process function.
I initialized a parameter listener, but when I call following
functions, it never reaches my listener proc:
AUParameterSet(NULL, NULL, &_messengerParam, value, 0);
AUParameterListenerNotify(NULL, NULL, & _messengerParam);
am I doing something wrong?
Peter
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40teragon.org
This email sent to email@hidden
--
Nik Reiman :: email@hidden
Teragon Audio :: http://www.teragon.org
Custom audio software design
_______________________________________________
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