Re: presets
Re: presets
- Subject: Re: presets
- From: Bill Stewart <email@hidden>
- Date: Wed, 09 Oct 2002 18:35:39 -0700
Yes
That is one of the nice things about the CFPropertyList is that it is keyed
- the Save/Restore state have the basic support that we would like all AU to
support - but any additional information is totally up to you to provide and
support (and overiding the virtual call is a fine way to go)
The AUBase calls will ensure that the data matches the AU (ie. right data,
right AU) - so when restoring you should probably call that first before
doing your own work.
Bill
on 9/10/02 1:28 PM, Benjamin Golinvaux wrote:
>
I have special properties in my AudioUnits that I want to save when
>
saving the AU state,
>
but i don't want these to be seen in the generic view, thus i don't
>
want to use AU parameters for these props.
>
(For example, a property of a particular UI element I'm using in the
>
user interface.)
>
>
What's the best way to save/restore those properties ?
>
>
I see that AUBase::SaveState(CFPropertyListRef* outData) and
>
AUBase::RestoreState(CFPropertyListRef inData) are virtual calls.
>
>
Does this mean it is a good idea for me to override these calls in my
>
AUBase subclass, first call the base version, and then add/read my
>
custom info to/from the CFPropertyListRef ?
>
>
Thanks.
>
>
Benjamin Golinvaux
>
Arboretum Systems, Inc.
>
www.arboretum.com
>
_______________________________________________
>
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.
References: | |
| >presets (From: Benjamin Golinvaux <email@hidden>) |