OGeek|极客世界-中国程序员成长平台

标题: ios - InstallTapOnBus - 用于输出信号 [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-11 19:15
标题: ios - InstallTapOnBus - 用于输出信号

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

    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()
}

它给我一个错误:“所需条件为假:_isInput”



Best Answer-推荐答案


您是否尝试过直接点击混音器而不是麦克风?

Microphone-to-mixer-to-output with Mixer Tap

关于ios - InstallTapOnBus - 用于输出信号,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42821953/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://ogeek.cn/) Powered by Discuz! X3.4