• 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: parameter persistence and view?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: parameter persistence and view?


  • Subject: Re: parameter persistence and view?
  • From: "Sophia Poirier [dfx]" <email@hidden>
  • Date: Thu, 16 Apr 2009 16:42:44 -0400

To apply the workaround, I override RestoreState() like so:

ComponentResult YourEffect::RestoreState(CFPropertyListRef inData)
{
ComponentResult result = AUBase::RestoreState(inData);
if (result == noErr)
AUParameterChange_TellListeners(GetComponentInstance(), kAUParameterListener_AnyParameter);
return result;
}


The function AUParameterChange_TellListeners() is from my AU utilities library:
http://destroyfx.org/dfx-au-utilities.html
but the implementation is very simple, if you prefer to do it yourself.


- Sophia



On Apr 16, 2009, at 4:05 PM, yoke wrote:

I've just found that
the plug-in you'll get by compiling
a newly created Audio Unit Synth project (without any change)
performs as same as my plugin:
after changing "Global Volume" and shutdown/re-open the host(Logic 7)
you can hear the sound in the volume you've set before shutdown,
but the slider is reverted to the maximum position.

It seems that we need some special logic to get the view restoration
with Logic 7.
Sophia, how did you work it out in your case ?



On 2009/04/16, at 5:33, Sophia Poirier [dfx] wrote:

On Apr 14, 2009, at 12:12 PM, William Stewart wrote:

On Apr 13, 2009, at 8:31 PM, $B=|B<(B $BIp;V(B wrote:

Thanks for the answer, Bill.

Do you mean that It's necessary to add some codes to refresh the
view
in overridden RestoreState?

nope - the view will find this out because the host will tell it that
the parameters have changed when it sets a preset




But as far as using AULab or Garageband, the view is restored as
well.
Is it just because these hosts are too nice?

that means they are doing the right thing. If logic isn't, then that could be a bug there, but this would surprise me as this is not a reported problem with other audio units is it?


There are definitely older versions of Logic that had this problem
and I remember adding in a specific workaround for this to AUs of
mine.  I believe it was fixed with Logic 7.

Sophia
_______________________________________________
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: parameter persistence and view?
      • From: Takeshi Yokemura <email@hidden>
  • Prev by Date: Re: Automation editor parameter display type
  • Next by Date: Re: Automation editor parameter display type
  • Previous by thread: Re: parameter persistence and view?
  • Next by thread: Re: parameter persistence and view?
  • Index(es):
    • Date
    • Thread