AudioUnitSetProperty() returns -10879
AudioUnitSetProperty() returns -10879
- Subject: AudioUnitSetProperty() returns -10879
- From: Stephen Blinkhorn <email@hidden>
- Date: Sat, 27 Jan 2007 15:37:33 +0000
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:
AudioUnitGetPropertyInfo(thisAU, kAudioUnitProperty_ParameterInfo,
kAudioUnitScope_Global, kGlobalSynthType1, &size, &outWriteable);
..first I call the above which always returns NULL for outWriteable.
does this mean I cannot call AudioUnitSetProperty() on it?
AudioUnitGetProperty(thisAU, kAudioUnitProperty_ParameterInfo,
kAudioUnitScope_Global, kGlobalSynthType1, ¶mInfo, &size);
..but when I do this second call I can see that the IsReadable and
IsWriteable parameter flags are still set.
AudioUnitSetProperty(thisAU, kAudioUnitProperty_ParameterInfo,
kAudioUnitScope_Global, kGlobalSynthType1, ¶mInfo, size);
..this call returns -10879.
I am running the code above inside an AUParameterListenerProc which
is a static member function so even if I successfully call
AudioUnitSetProperty() I can't call PropertyChanged() to refresh the
generic view. Have I missed something in the docs or have I just
chosen the most retarded way of achieving what I want?
Any help greatly appreciated,
Stephen.
_______________________________________________
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