setting view parameter values
setting view parameter values
- Subject: setting view parameter values
- From: George Tourtellot <email@hidden>
- Date: Tue, 5 May 2009 09:55:34 -0700 (PDT)
Hello,
I am trying to create a simple plugin that has a single text box or label whose content is changed by the AU code; for example, the text might be a count of the number of calls to the kernel class' Process method.
From reading this forum, it seems like I need to
use parameter listeners to make the UI reflect any parameter change that's made in code.
I am wondering what's the easiest way of implementing this. I have noticed that when I create a new "Audio Unit Effect with Cocoa View" project, the file: __MyCompanyName__LyricsCocoaUA_CocoaView.m
has code snippet:
#pragma mark ____ LISTENER CALLBACK DISPATCHEE ____
- (void)_parameterListener:(void *)inObject parameter:(const AudioUnitParameter *)inParameter value:(Float32)inValue {
//inObject ignored in this case.
switch (inParameter->mParameterID) {
case kParam_One:
[uiParam1Slider setFloatValue:inValue];
[uiParam1TextField setStringValue:[[NSNumber numberWithFloat:inValue] stringValue]];
break;
}
}
This seems related to what I want to do; again, basically I want to set the string value of a text field, based on logic in the kernel class' Process method.
Could anyone tell me how to achieve this?
best, --anonman0
|
_______________________________________________
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