Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经为输入和输出设置了 RemoteIO 音频单元渲染回调。我希望减少调用渲染回调的频率。如何指定调用它们的速率?
每个缓冲区都会调用一次回调,因此您可以通过指定更大的缓冲区大小来减少调用它们的频率。在 44.1 kHz 的采样率和 8192 个样本的(巨大)缓冲区大小下,缓冲区调用之间的时间约为 2/10 秒。
音频回调不能超过这个间隔,因为它们的存在是为了对传入/传出的音频进行每个缓冲区的处理。如果您不在每个缓冲区上运行回调,您将不再拥有实时音频。