Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AUListenerAddParameter



We normally do not use NULL for the object param - that's probably the problem. Try specifying self (obj-c), or this (c++)

Bill

On 15/06/2006, at 3:17 PM, Richard Burnett wrote:

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

--
mailto:email@hidden
tel: +1 408 974 4056
________________________________________________________________________ __
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
________________________________________________________________________ __


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/coreaudio-api/email@hidden

This email sent to email@hidden
References: 
 >AUListenerAddParameter (From: Richard Burnett <email@hidden>)
 >Re: AUListenerAddParameter (From: William Stewart <email@hidden>)
 >Re: AUListenerAddParameter (From: Richard Burnett <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.