• 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
Audio Units:Updating Parameters in GUI automatically
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Audio Units:Updating Parameters in GUI automatically


  • Subject: Audio Units:Updating Parameters in GUI automatically
  • From: "Metzar, Nicholas W" <email@hidden>
  • Date: Thu, 19 Apr 2007 00:58:21 -0400
  • Thread-topic: Audio Units:Updating Parameters in GUI automatically

(This is might be somewhat of a newbie question, but probably a little deeper than that...)

Here is a question/situation that I think should be easy to answer.  Or rather...I hope is easy to answer.

Heres the situation... say I'm making an AU plugin with a simple generic view.
This plugin has several parameters...doesn't matter what they are/do/represent: gain, delay, whatever.

I want the the plugin to change the value of the parameter automatically based on any sort of condition, ***AND*** update the GUI to reflect this change.  For example:

	if (a != b)
	{
	mAudioUnit->SetParameter(kParam1, new_value);
	}

This piece of code would (does) work great in the kernel process (just once a buffer, not every sample...I really don't need that).  I can hear the change happening as expected by updating kParam1 to its new_value whenever a!=b.  However, the slider bar does not move in the GUI.  I really really want to see that happen.  Its feedback to the user that shows them what is happening.  How do I make that happen?  Why doesn't SetParameter do it?

Ideally, the answer to this question is nearly as simple as the example code I posted, although I'm aware my expectations may be high.

Thanks for any and all help!
-Nick
 _______________________________________________
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: Audio Units:Updating Parameters in GUI automatically
      • From: William Stewart <email@hidden>
    • Re: Audio Units:Updating Parameters in GUI automatically
      • From: Mark Pauley <email@hidden>
  • Prev by Date: Re: Audio Unit Component Icon
  • Next by Date: Re: Audio Unit UI
  • Previous by thread: Re: AU MusicDevice handling MIDI
  • Next by thread: Re: Audio Units:Updating Parameters in GUI automatically
  • Index(es):
    • Date
    • Thread