Re: Strange AUParameterSet behavior in Logic 6.3.1, OS X 10.2?
Re: Strange AUParameterSet behavior in Logic 6.3.1, OS X 10.2?
- Subject: Re: Strange AUParameterSet behavior in Logic 6.3.1, OS X 10.2?
- From: Marc Poirier <email@hidden>
- Date: Thu, 20 Nov 2003 13:42:11 -0600 (CST)
On Thu, 20 Nov 2003, Rob Martino wrote:
>
Listener creation code:
>
>
err = AUListenerCreate(ParameterListenerProc, this,
>
CFRunLoopGetCurrent(), kCFRunLoopDefaultMode, 0.000f, // 0 ms
>
¶meterListener);
What does ParameterListenerProc do? If it's doing any sort of graphics
rendering work, then this may be the problem. You need to be very careful
if you use 0.0 as the update response rate. When you use 0, that means
that AU listener notifications will immediately jump to calling your
listener proc. If you use a higher value, then the notification will go
into a queue and fire later from an idle thread timer. Unless your
listener proc can guarantee to return quickly, then you should not be
using 0 as the time since the notifications can be coming from the audio
rendering thread. I'm not sure, but this may be the cause of your
instabilities.
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.