• 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: Detecting preset parameter changes in Audio Units
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Detecting preset parameter changes in Audio Units


  • Subject: Re: Detecting preset parameter changes in Audio Units
  • From: William Stewart <email@hidden>
  • Date: Thu, 29 Mar 2007 17:18:24 -0700


On 29/03/2007, at 12:31 PM, Frank Schoep wrote:

Hello all,

Can anyone shed some light on how to detect host-side preset changes in an Audio Unit?

Thanks to the help from Michael, William et al I have successfully implemented dynamic parameter names, dependent on another parameter. However, when changing a preset, the host application (AU Lab) doesn't make a call to SetParameter so I can't detect the change and reset parameter names accordingly.

The hots is at fault - after setting a preset it is responsible for issuing parameter change notifications. The code in AUHosting (/ Developer/Examples/CoreAudio) shows you how to do this.

I have looked into this and I think that the kAudioUnitProperty_PresentPreset comes close to what I want to use as a trigger, but I don't know how to use this property for an event based system instead of polling. Also, I'm not sure how to detect the change of the actual preset since both presetNumber and presetName are not necessarily unique.


If there is another way to detect preset changes I'd like to hear about it. I have a workaround available in the form of (ab)using my AUKernel::Process method to monitor for changes in the GUI parameters, but of I'd greatly prefer an elegant method.

Note that I'm not per say interested in monitoring preset changes, but more in parameter value changes on preset change, I hope that makes sense.

Thanks in advance for your assistance, I'm getting closer and closer to the actual release of my work.

With kind regards,

Frank Schoep

_______________________________________________
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

--
mailto:email@hidden
tel: +1 408 974 4056
________________________________________________________________________ __
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
________________________________________________________________________ __


_______________________________________________
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:
    • Re: Detecting preset parameter changes in Audio Units
      • From: Frank Schoep <email@hidden>
References: 
 >Detecting preset parameter changes in Audio Units (From: Frank Schoep <email@hidden>)

  • Prev by Date: Re: CPU at 100% [Was: AAC and AudioConverter error : '!pkd']
  • Next by Date: Re: 192000 Hz won't render
  • Previous by thread: Detecting preset parameter changes in Audio Units
  • Next by thread: Re: Detecting preset parameter changes in Audio Units
  • Index(es):
    • Date
    • Thread