Re: AUEventListener sending incorrect parameter changes?
Re: AUEventListener sending incorrect parameter changes?
- Subject: Re: AUEventListener sending incorrect parameter changes?
- From: William Stewart <email@hidden>
- Date: Fri, 21 Mar 2008 14:24:09 -0700
On Mar 20, 2008, at 6:22 PM, Michael Norris wrote:
Hi there
I've noticed some slightly odd behaviour with AUEventListenerCreate
and the default UI for AudioUnits.
My code opens the AUBandpass window with the default UI (two
sliders). I also set up parameter listeners on these two sliders
using the following code:
CFRunLoopRef runLoop =
(CFRunLoopRef)GetCFRunLoopFromEventLoop(GetCurrentEventLoop());
result = AUEventListenerCreate(MyPropertyListener,
NULL,
specify the object parameter - that should fix it (we usually use
"this" or "self")
\
runLoop,
kCFRunLoopCommonModes,
.100,
.100,
&MyListener);
When I click and drag the first slider, I get parameter change
notifications as expected.
However, if I then click on the second slider, WITHOUT moving the
mouse, I get a parameter change for the value of the first
parameter. Only when I move the mouse do I get the parameter changes
for the second parameter.
I would appreciate it if someone could explain why this is
happening, and/or how to work around it?
Thanks
Michael
_______________________________________________
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
_______________________________________________
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