AUListenerAddParameter returns -50
AUListenerAddParameter returns -50
- Subject: AUListenerAddParameter returns -50
- From: Stephen Blinkhorn <email@hidden>
- Date: Fri, 19 Jan 2007 21:15:47 +0000
Hello all, I am having problems with a AUListenerAddParameter call
that is returning an OSStatus of -50 which I believe is a parameter
error.
synthTypeParam.mAudioUnit = inComponentInstance;
synthTypeParam.mScope = kAudioUnitScope_Global;
synthTypeParam.mElement = 0;
synthTypeParam.mParameterID = kGlobalSynthType1;
OSStatus status = AUListenerAddParameter(parameterListener, this,
&synthTypeParam);
I am not sure about my use of inComponentInstance which I get from my
audio unit's constructor for example:
MySynth::MySynth(ComponentInstance inComponentInstance) :
AUMonotimbralInstrumentBase(inComponentInstance, 0, 1).
Everything else looks ok to me. Can anyone see what I'm missing?
thanks,
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