Re: SaveState, VST2AU and AUValidation
Re: SaveState, VST2AU and AUValidation
- Subject: Re: SaveState, VST2AU and AUValidation
- From: Glenn Olander <email@hidden>
- Date: Mon, 5 Jan 2004 12:12:02 -0800
How would you write the correct version number in that case? Or do your
own parameter interpretation? I don't believe it was intended to be
used that way, but I suppose it might suffice for a trivial plugin.
- Glenn
On Monday, January 5, 2004, at 12:47 PM, Marc Poirier wrote:
On Mon, 5 Jan 2004, Glenn Olander wrote:
I don't think there is anything "wrong" with RestoreState or
SaveState.
However, I do believe it would be a good idea to separate out the
logic
from those methods which writes the required fields into a separate
method, for example called something like WriteRequiredFields(). That
way, an AU which implements it's own SaveState can call
WriteRequiredFields(). As it is now, you have to clone that code into
your own implementation of RestoreState/SaveState.
No, you don't, you just call AUBase::RestoreState() in your
Whatever::RestoreState(inPlist) implementation. That's what I'm
getting
at. No need to copy and paste anything.
Marc
_______________________________________________
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.