CMSampleBuffer转换为音频数据

时间:2018-09-13 21:18:28

标签: javascript ios swift avfoundation

如何获取 sampleBuffer 并将其转换为音频数据?

这是我用来获取sampleBuffer的功能

func captureOutput(_ : AVCaptureOutput, didOutput sampleBuffer: CMSampleBuffer, from connection: AVCaptureConnection) {
    // Do something with sampleBuffer to get it into audio Data   
   // Make it come out in a data Object.
}

0 个答案:

没有答案