AudioUnit:从 CocoaView 访问 ComponentKernel 属性

发布于 2024-09-25 17:32:55 字数 669 浏览 1 评论 0原文

我想从 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

把回忆走一遍 2024-10-02 17:32:55
  • 定义 AudioUnit 自定义属性
  • 使用 AudioUnitGetProperty 从 cocoa 视图访问它
  • 重新实现 AUEffectBase::GetProperty 方法
  • 从 GetProperty 中,使用 GetKernel(...) 方法访问内核
  • 享受一些 tee
  • Define an AudioUnit custom property
  • Access it from the cocoa view using AudioUnitGetProperty
  • Reimplement the AUEffectBase::GetProperty method
  • From GetProperty, access the kernels using the GetKernel(...) method
  • Enjoy some tee
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文