Re: Load/Save Presets does not work
Re: Load/Save Presets does not work
- Subject: Re: Load/Save Presets does not work
- From: Bill Stewart <email@hidden>
- Date: Mon, 3 Mar 2003 10:08:47 -0800
You need to make sure that the parameters themselves are being stored
in the element objects - this is where the save state call gets them
from and where restore state will reinstantiate them too...
In the SampleEffectUnit in the CoreAudio SDK (see my previous post
about VST->AU porting:) the default values of the parameters are set in
the constructor, and then the unit would get and set parameters where
they are stored there as well (you shouldn't have member variables in
you subclass for parameter values) - if you do and you want to continue
this practise, then you'd need to explicitly save and restore them
yourself.
That's my guess as to what your problem is
Bill
On Monday, March 3, 2003, at 04:41 AM, email@hidden wrote:
Hi,
I know that the SaveState/RestoreState has been longly exposed on that
list, however I have some problems to make it works.
My plugins inherit from AUMIDIEffectBase, I did inherit
SaveState/RestoreState functions.
In those functions I first call the parent function in AUBase, then I
append some private data to the property list.
What is surprising is that AUBase does not read nor write my standard
parameters (those I declare from GetProperty***). When tracing the
code, it appears that there are no parameters whatever scope, element.
AUBase should know about the public parameters isn't it ?
My private data are stored and restored nicely, no problem.
What is more surprising is that it is the only feature that does not
work. Automation and everything else concerning parameters does work
nicely.
What is even more surprising is that the "Pan" example from the SDK
(my "reference" example) do have exactly the same problem, that is
preset loading/saving won't work.
I'm using Logic to test my AU.
I'm sure this is a dumb question, but I would be very glad to
understand why it does not work.
Thanks,
Raf
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.
--
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
________________________________________________________________________
__
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.