Re: parameter persistence and view?
Re: parameter persistence and view?
- Subject: Re: parameter persistence and view?
- From: "Sophia Poirier [dfx]" <email@hidden>
- Date: Tue, 21 Apr 2009 17:32:18 -0400
Hmmm none-the-less, I've definitely successfully worked around this
bug in Logic. Maybe try iterating through each parameter ID rather
than using the kAUParameterListener_AnyParameter wildcard shortcut? I
put that in there to make it simpler, but actually in my own code I
have iterated, so perhaps it's also the case that Logic isn't (or
wasn't) properly handling that?
Sophia
On Apr 21, 2009, at 10:35 AM, Takeshi Yokemura wrote:
Thanks for the answer, Sophia.
But unfortunately, it didn't work X(
I did some researches around again,
to find out it's a specific bug of Logic 7's generic view.
I had my recognition that other AU plug-ins pre-installed with Logic
don't have such a problem,
and it's the reason I thought my plug-in had something wrong,
but I switched them to generic views to have found they've got
the same behaviour as my AU.
( I took a long time to know it because
their custom views are very simple like generic views! )
It doesn't seem to be a good way to fight this specific bug,
so I'll rather get down to build my custom view ;)
But I learned a lot about parameter change notifications
by your advice. Thanks, Sophia :)
----
Takeshi Yokemura
Sophia Poirier [dfx] wrote:
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, 除村 武志 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