AVCaptureSession,AVCaptureAudioDataOutput,CMSampleBufferRef PCM裸数据获取问题。
- (void)captureOutput:(AVCaptureOutput *)captureOutput
didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer
fromConnection:(AVCaptureConnection *)connection
函数中,各种方式从CMSampleBufferRef对象中取出来的数据,直接写文件后,用专门的PCM裸数据播放器都播放不了。
用系统的函数写成aif文件则可以播放。
项目中需要PCM裸数据直接操作,,有没有大虾折腾过这方面的?还请不吝赐教。