Re: What happened to factory presets?
Re: What happened to factory presets?
- Subject: Re: What happened to factory presets?
- From: Robert Grant <email@hidden>
- Date: Wed, 8 Jan 2003 13:32:01 -0500
Hi Marc,
That worked. I don't know why I was using AUPreset*??? :-(
Sadly I think I'm going to have to rip out the custom GUIs that I did
for Apple's AU effects
in Rax because they keep adding features. It would be nice if they
provided an
attractive custom GUI of their own though...
Robert.
On Wednesday, January 8, 2003, at 01:57 PM, Marc Poirier wrote:
Hi Robert. You want to change that to size = sizeof(AUPreset). This
actually has nothing to do with eliminating the AUFactoryPreset type
(you
were always supposed to pass size of the type, not the pointer to it),
but
another change: the SDK file AUBase.cpp was recently changed so that
it
rejects attempts to set the CurrentPreset property if the size
argument is
incorrect. So that's why AUs built with more recent versions of the AU
SDK are not working in Rax.
Marc
On Wed, 8 Jan 2003, Robert Grant wrote:
There used to be an AUFactoryPreset pre 10.2.3 and my preset selection
code worked.
Now they've gone and changing AUFactoryPreset to AUPreset doesn't seem
to be
a good solution. Here's what I'm getting:
Setting Matrix Reverb Preset: Large Room, (number 2)
2003-01-08 08:17:39.565 Rax[3309] Set CurrentPreset: -10851
Here's what I'm doing:
AUPreset* preset = // some preset I retrieved earlier to make my menu
UInt32 size = sizeof(AUPreset*);
OSStatus status =
AudioUnitSetProperty(unit,
kAudioUnitProperty_CurrentPreset,
kAudioUnitScope_Global,
0,
preset,
size);
Here's the definition of -10851
kAudioUnitErr_InvalidPropertyValue = -10851, /* same error code but
different calling context*/
/* as
kAUGraphErr_CannotDoInCurrentContext */
How does setting presets work now? And is the new way backward
compatible?
Thanks,
Robert.
_______________________________________________
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.