AUEventListener sending incorrect parameter changes?
AUEventListener sending incorrect parameter changes?
- Subject: AUEventListener sending incorrect parameter changes?
- From: Michael Norris <email@hidden>
- Date: Fri, 21 Mar 2008 14:22:36 +1300
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,
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