Re: AUListenerAddParameter returns -50
Re: AUListenerAddParameter returns -50
- Subject: Re: AUListenerAddParameter returns -50
- From: Stephen Blinkhorn <email@hidden>
- Date: Mon, 22 Jan 2007 17:49:49 +0000
I fixed this..
On 19 Jan 2007, at 21:15, Stephen Blinkhorn wrote:
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:
email@hidden
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