• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
AUListenerAddParameter returns -50
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: AUListenerAddParameter returns -50
      • From: Stephen Blinkhorn <email@hidden>
  • Prev by Date: Re: AudioDeviceGetCurrentTime after headphone plug/unplug
  • Next by Date: Re: Jack and CoreAudio (was Mirroring Audio Output)
  • Previous by thread: Re: ioNumberPackets == 0 in ProduceOutputPackets()
  • Next by thread: Re: AUListenerAddParameter returns -50
  • Index(es):
    • Date
    • Thread