• 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
Audio Unit, Cocoa Interface Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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, &parameter[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

  • Follow-Ups:
    • Re: Audio Unit, Cocoa Interface Question
      • From: Brian Kennedy <email@hidden>
  • Prev by Date: Re: MIDI causing CoreAudio overload errors?
  • Next by Date: Re: Audio Unit, Cocoa Interface Question
  • Previous by thread: Re: MIDI causing CoreAudio overload errors?
  • Next by thread: Re: Audio Unit, Cocoa Interface Question
  • Index(es):
    • Date
    • Thread