• 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
Re: AUListenerAddParameter
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AUListenerAddParameter


  • Subject: Re: AUListenerAddParameter
  • From: Richard Burnett <email@hidden>
  • Date: Thu, 15 Jun 2006 18:17:13 -0400

Hmmm.  Here is some of the code I use:

enum {
	kParam_One          = 0,
	kLfo1RateParam      = 1,
	kNumberOfParameters = 2
};

AudioUnitParameter parameter[] = { { 0, kParam_One, kAudioUnitScope_Global, 0 },
			{ 0, kLfo1RateParam, kAudioUnitScope_Global, 0 } 								};

   int i;
   for (i = 0; i < kNumberOfParameters; ++i) {
      parameter[i].mAudioUnit = mAU;

      NSAssert (  AUListenerAddParameter (mParameterListener, NULL, &parameter[i]) == noErr,
         @"[CocoaView _addListeners] AUListenerAddParameter()");
   }


So the second element of the AudioUnitParameter should be unique, right?

Strange...

Rick

>Its probably rejecting the second one because you're adding an
>identical entry? An unique identity is formed by:
>Listener
>"Object" (this is the object arg to the listener APIs)
>ParamInfo - AU, Scope, Element, ParamID

>Bill
 _______________________________________________
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
      • From: William Stewart <email@hidden>
References: 
 >AUListenerAddParameter (From: Richard Burnett <email@hidden>)
 >Re: AUListenerAddParameter (From: William Stewart <email@hidden>)

  • Prev by Date: Re: AUListenerAddParameter
  • Next by Date: CoreAudio on dual-G5s
  • Previous by thread: Re: AUListenerAddParameter
  • Next by thread: Re: AUListenerAddParameter
  • Index(es):
    • Date
    • Thread