Re: AudioUnitSetProperty() returns -10879
Re: AudioUnitSetProperty() returns -10879
- Subject: Re: AudioUnitSetProperty() returns -10879
- From: Stefan Gretscher <email@hidden>
- Date: Tue, 30 Jan 2007 16:05:55 +0100
Hi Stephen,
if possible I'd advise against modifying the parameter
characteristics at runtime.
Currently most host apps don't support this properly, and it may
cause trouble if
the user has recorded automation for the parameter.
If you still decide to go down this route, then use the
AudioUnitEvent API
(see http://developer.apple.com/technotes/tn2002/tn2104.html) and
trigger
a property change notification for kAudioUnitProperty_ParameterInfo
so that
any hosts and views can update accordingly.
Best,
Stefan
Am 29.01.2007 um 19:00 schrieb Stephen Blinkhorn:
On 27 Jan 2007, at 15:37, Stephen Blinkhorn wrote:
Hello all,
I am trying to update a parameter's min,max,default and unit
values in response to some parameter change. I'm having problems
calling AudioUnitSetProperty() from inside a parameter listener.
It always returns invalid property error:
AudioUnitSetProperty(thisAU, kAudioUnitProperty_ParameterInfo,
kAudioUnitScope_Global, kGlobalSynthType1, ¶mInfo, size);
..this call returns -10879.
Right, I see. You can't use kAudioUnitProperty_ParameterInfo with
AudioUnitSetProperty() it is intended only for use with
AudioUnitGetProperty(). So if I want to redefine a parameter's
min,max & unit values in response to a parameter change elsewhere
what is the best approach? Destroy the original and create a new
parameter?
TIA for any help,
Stephen.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40apple.com
This email sent to email@hidden
_______________________________________________
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