• 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
Noob question: sending button clicks to AudioUnits?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Noob question: sending button clicks to AudioUnits?


  • Subject: Noob question: sending button clicks to AudioUnits?
  • From: Oli Donald <email@hidden>
  • Date: Sun, 8 May 2005 12:53:38 +0100

I'm porting an old AudioUnit plugin forwards to support a nice Cocoa interface. 99% of the work is done, I've got sliders and text fields and on/off buttons doing there thing and the AU Kernel responding correctly. But there is one thing I can't work out - how do I make my AU Kernel respond to a button click?

I have one button in the GUI that is supposed to clear a buffer. In the button's action method, if I do AUParameterSet() with 'true' for the button being pressed, then when my AU Kernel comes to get that parameter, then from the first click onwards it will *always* be True. What I've done to get around this is to have the action method send a toggling value to AUParameterSet(), and the AU Kernel responds to a change in that parameter. This seems like a horrible kludge. Is there a more elegant way for an AU Kernel to respond to a button click?

Thanks,
Oli
_______________________________________________
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


  • Follow-Ups:
    • Oops - Re: Noob question: sending button clicks to AudioUnits?
      • From: Brian Willoughby <email@hidden>
    • Re: Noob question: sending button clicks to AudioUnits?
      • From: Brian Willoughby <email@hidden>
    • Re: Noob question: sending button clicks to AudioUnits?
      • From: Chris Rogers <email@hidden>
  • Prev by Date: Using AUAudioFilePlayer without its UI
  • Next by Date: RE: Working with Input and output Device
  • Previous by thread: Using AUAudioFilePlayer without its UI
  • Next by thread: Re: Noob question: sending button clicks to AudioUnits?
  • Index(es):
    • Date
    • Thread