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:16:48 -0800
Glenn
On Monday, March 3, 2003, at 09:30 AM, Glenn Olander wrote:
In Crystal, I took all the responsibility for the Save/Restore in
my MusicDevice subclass. It isn't clear to me where the responsibility
should be divided, but that seems to be the way to get it to work
currently.
Probably because you aren't storing your parameter values in the
scope/element objects but as member variables in your audio unit
class...
This is why the constructor for the SampleEffectUnit just calls
SetParameter with the default value - to set that state up...
Bill
One odd thing I noticed: on restore in Logic, I received a
SetProperty()
for the current preset index. The problem is, it was wrong. It
corresponded to the most recent selection from Logic's preset menu,
not the current index member variable (and there was no GetProperty()
call for current index during the save), so I had to handle that as
well.
_______________________________________________
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.