Re: Load/Save Presets does not work
Re: Load/Save Presets does not work
- Subject: Re: Load/Save Presets does not work
- From: Chris Reed <email@hidden>
- Date: Mon, 3 Mar 2003 10:58:09 -0600
Odd..
My audio units do not have any trouble whatsoever with the save and
restore state functions. Like you, I call the superclass
Save/RestoreState and then append my own private data to the property
list. Presets are saved and restored perfectly.
Btw, the particular plugin of mine that I'm thinking of here is a
MusicDevice. And testing with SynthTest and Rax. But it shouldn't be
any different.
On the other hand, several months ago I posted something about a
problem I saw in SynthTest where most MusicDevices would not save any
data in the preset property list, but presets for effects worked fine.
But that was an SDK version or two ago, and there were only 2-3
non-Apple MusicDevices.
-chris
On Monday, Mar 3, 2003, at 08:26 US/Central, Urs Heckmann wrote:
Am Montag, 03.03.03, um 14:44 Uhr (Europe/Berlin) schrieb
email@hidden:
First, thanks Urs for the quick reply. I'm (relatively) happy to see
that I'm not the only one.
I have experienced exactly the same problem. That's why I also save
my public parameters in my custom data chunk.
I was thinking of it. I would be glad to know if it could interfere
in other hosts (if it is a Logic bug).
It's not a Logic bug AFAIK. My workaround does a good job in every
host I tested with. It shouldn't be a problem.
Don't forget to call SetParameter() for each parameter to get the
stuff set / GUI notified.
I have sample code in my CAUGuiSDK at www.u-he.com/audiounits/
I looked at Save/Restore in AUBase some time ago and have not found
the code that should save public parameters in the "data" key.
There's only the code in AUScopeElement which I havn't traced if it
gets called at all.
It is not. All loops is Save/Restore are empty, because there are no
parameters whatever scope, element.
So where do that bug come from ?
Any one at apple ? is that normal ? is there an obvious thing we did
not understand here ?
I really don't exactly understand what's going on in AUBase's
Save/RestoreState 8-)) Too many type conversions, endian swapping,
strange data structures (hdr...) and what have you...
... I can happily live with my much simpler approach...
;) Urs
_______________________________________________
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.
_______________________________________________
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.