使用MatrixMixer,如何设置上游源AVAudioFormat

问题描述 投票:0回答:1

在 MatrixMixer 的文档中,它说明了以下内容...

In order to be able to use Matrix Mixer, upstream connections will need to have different format then downstream. Downstream connections are determined by output node's channel count. But, for matrix mixer to be able to count input channels correctly, upstream connections need to preserve source number of channels.

This can be done using Node.outputFormat.

outputFormat 不是一个只能获取的属性吗?我还没有找到使用 AudioKit 为单个节点设置输出格式的方法。我想将具有 16 通道(或 8 或 4)的输入 USB 音频设备连接到矩阵混音器,然后使用矩阵混音器将其子混音为两个通道混音器。

我已经设置了 Settings.audioFormat 但这适用于所有新节点。

audiokit
1个回答
0
投票

自 2023 年 11 月 23 日起,对 Mixer 和 MatrixMixer 上设置/获取输出格式的更改已推送到主分支。

我不是 Swift Package Manager 方面的专家,因此我将当前版本的 AudioKit 克隆到本地文件系统上,并使用主分支构建了我的应用程序。

© www.soinside.com 2019 - 2024. All rights reserved.