|[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]|
On Thu, 20 Nov 2003, Rob Martino wrote:_______________________________________________
Listener creation code:
err = AUListenerCreate(ParameterListenerProc, this,
CFRunLoopGetCurrent(), kCFRunLoopDefaultMode, 0.000f, // 0 ms
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
Visit the Apple Store online or at retail locations.
Copyright © 2011 Apple Inc. All rights reserved.