菜鸟教程小白 发表于 2022-12-11 19:15:42

ios - InstallTapOnBus - 用于输出信号


                                            <p><p>在主题中,我想分析输出信号的缓冲区。我已将此功能( InstallTapOnBus )用于麦克风信号,但不适用于输出。有人知道怎么做吗?</p>

<pre><code>    let bus = 0
    let node = engine.outputNode
    node.installTap(onBus: bus, bufferSize: AVAudioFrameCount(BUFFER_SIZE), format: node.outputFormat(forBus: bus), block: { (buffer : AVAudioPCMBuffer ,time : AVAudioTime) in

      ...

    })
    try! engine.start()
}
</code></pre>

<p>它给我一个错误:“所需条件为假:_isInput”</p></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>您是否尝试过直接点击混音器而不是麦克风?</p>

<p> <a href="/image/wUVVs.png" rel="noreferrer noopener nofollow"><img src="/image/wUVVs.png" alt="Microphone-to-mixer-to-output with Mixer Tap"/></a> </p></p>
                                   
                                                <p style="font-size: 20px;">关于ios - InstallTapOnBus - 用于输出信号,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/42821953/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/42821953/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: ios - InstallTapOnBus - 用于输出信号