Audio Unit, Cocoa Interface Question
Audio Unit, Cocoa Interface Question
- Subject: Audio Unit, Cocoa Interface Question
- From: mark erickson <email@hidden>
- Date: Mon, 04 Apr 2005 16:14:09 -0500
I can't seem to get a check box to function in my audio unit plug-in if I use a Cocoa interface.
Is the selected state of a check box held in the class's 'intValue'?
If so, what have I left out below?
If not, any hints?
Thanks.
Mark
// *** in CocoaView.h *** //
@interface CocoaView : NSView
{
// IB Members
IBOutlet NSButton * uiParam1Button;
// Other Members
AudioUnit mAU;
AUParameterListenerRef mParameterListener;
}
// *** in CocoaView.m *** //
#pragma ____ INTERFACE ACTIONS ____
- (id)sender {
NSAssert( AUParameterSet(mParameterListener, sender, ¶meter[0], [uiParam1Button intValue], 0) == noErr,
@"[CocoaView iaParam1Changed:] AUParameterSet()");
}
#pragma ____ LISTENER CALLBACK DISPATCHEE ____
- (void *)inObject parameter:(const AudioUnitParameter *)inParameter value:(Float32)inValue {
switch (inParameter->mParameterID) {
case kParam_One:
[uiParam1Button setIntValue:(int)inValue];
break;
}
}
_______________________________________________
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