当使用AVCaptureAudioDataOutput时,CMSampleBuffer中存储的数据是什么?它通过委托方法
-captureOutput:didOutputSampleBuffer:fromConnection:
传递CMSampleBuffers,但是CMSampleBuffer内部有什么呢?是PCM还是压缩的?采样率、通道数量等是多少?这如何用于从设备流式传输音频?
谷歌搜索数小时也没有帮助我。
提前致谢。
CMSampleBufferGetFormatDescription
,它显示了我想知道的所有信息。 - peetonnAVAudioOutput
以不同于接收到的参数? - peetonnAudioOutputUnit
、AVAudioPlayer
还是AVCaptureAudioDataOutput
。我在Core和AU层长大,我猜它可能是他们想提供的任何东西,以避免转换开销。在这里值得搜索一下。 - justin