How to convert AudioBufferList to CMSampleBuffer?

前端 未结 1 1839
情深已故
情深已故 2020-12-18 05:59

I have an AudioTapProcessor attached to AVPlayerItem. which will call static void tap_ProcessCallback(MTAudioProcessingTapRef tap, CMItemCount numberFrames, MTAudioP

相关标签:
1条回答
  • 2020-12-18 06:16

    OK, I've successfully resolved this problem.

    The problem is I should not construct the AudioStreamBasicDescription struct myself. But use the one provided by prepare callback of AudioProcessorTap .

    static void tap_PrepareCallback(MTAudioProcessingTapRef tap, CMItemCount maxFrames, const AudioStreamBasicDescription *processingFormat) //retain this one

    0 讨论(0)
提交回复
热议问题