Re: What happened to factory presets?
Re: What happened to factory presets?
- Subject: Re: What happened to factory presets?
- From: Bill Stewart <email@hidden>
- Date: Wed, 8 Jan 2003 14:44:19 -0800
I know that AudioUnitHosting still works for factory presets...
The problem is your size argument - which we HAVE changed in 10.2.3 to
stricter and more correct (and it is backward compatible)
The size param to the property calls is meant to indicate the size of
the VALUE of the property - not to indicate that you are passing the
property value by reference.
Thus:
size = sizeof (AUPreset);
NOT
size - sizeof (AUPreset*);
Bill
On Wednesday, January 8, 2003, at 05:49 AM, 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.
--
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.