AudioUnit:从 CocoaView 访问 ComponentKernel 属性
我想从 AudioUnit 组件的 cocoa 视图 中定义的操作方法访问我的 AudioUnit 组件内核成员:(
- (IBAction)iaParam1Changed:(id)sender {
float floatValue = [sender floatValue];
NSAssert(AUParameterSet(mParameterListener, sender, &mParameter[0], (Float32)floatValue, 0) == noErr, @"[MyAudioUnit_CocoaView iaParam1Changed:] AUParameterSet()");
if (sender == uiParam1Slider) {
[uiParam1TextField setFloatValue:floatValue];
} else {
[uiParam1Slider setFloatValue:floatValue];
}
}
例如,与信号上计算的统计数据进行交互。 ..)。但我不知道如何使用 Cocoa View 的 AudioUnit mAU
成员来获取内核(然后是它的成员)...你会怎么做? (也许我不应该这样做?)谢谢。
I would like to access my AudioUnit Component Kernel members from an action method defined in the cocoa view of my AudioUnit Component :
- (IBAction)iaParam1Changed:(id)sender {
float floatValue = [sender floatValue];
NSAssert(AUParameterSet(mParameterListener, sender, &mParameter[0], (Float32)floatValue, 0) == noErr, @"[MyAudioUnit_CocoaView iaParam1Changed:] AUParameterSet()");
if (sender == uiParam1Slider) {
[uiParam1TextField setFloatValue:floatValue];
} else {
[uiParam1Slider setFloatValue:floatValue];
}
}
(For instance, interact with stats computed on the signal...). But I don't know how to use the AudioUnit mAU
member of the Cocoa View to get the Kernel (and then its members)... How would you do that? (Maybe i'm not supposed to do that?) Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)