• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: AUEventListener sending incorrect parameter changes?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >AUEventListener sending incorrect parameter changes? (From: Michael Norris <email@hidden>)

  • Prev by Date: Re: Audio buffers in user-land audio driver
  • Next by Date: Re: [FAQ?] re>x-code template project for AU with cocoa view
  • Previous by thread: AUEventListener sending incorrect parameter changes?
  • Next by thread: no resizeindicator in AU window (Logic 8)
  • Index(es):
    • Date
    • Thread