与主题主题一样,我想分析输出信号的缓冲区。我已将此功能(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()
}
它给我一个错误:"必需条件为false:_isInput"