Storing the state of an AU
Storing the state of an AU
- Subject: Storing the state of an AU
- From: Martin Hairer <email@hidden>
- Date: Thu, 7 Dec 2006 01:05:38 +0000
This has been driving me mad for a couple of days now. I have a user
interface (that's on a host) that allows to store and retrieve
presets for Audio Units. This sounds straightforward enough, but I
haven't yet found a proper way of doing this that works with all of
the Apple-supplied AUs. Of course, my first instinct was to use
kAudioUnitProperty_ClassInfo which is supposed to do the trick. This
works fine for most AUs, but those that have factory presets (like
AUMatrixReverb) don't seem to update them.
Since some AUs (like SFX Machine RT for example) seem to rely on the
value of kAudioUnitProperty_PresentPreset for their GUI, I then
thought about storing that value and the values of all the
parameters. This again seems to work fine for most AUs, but for some
reason it doesn't work for the AUGraphicEQ plug-in...
A third way I tried was to store the values of both
kAudioUnitProperty_ClassInfo and kAudioUnitProperty_PresentPreset.
Again, this worked for some AUs and not for others.
Since all these experiments show inconsistent results, there must be
something that I haven't understood about how storing presets should
be handled... Could anyone enlighten me about the correct way of
doing this? Thanks a lot,
Martin
HairerSoft
http://www.hairersoft.com/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden