how to convert audio CMSampleBufferRef to data, and play the audio in other device with data received

1.1k Views Asked by At

I try to implement a video conference, i can capture video and audio with CaputreSession, and covert video CMSampleBufferRef to image and send data to other device.

But i don't have any idea how i can convert audio CMSampleBufferRef to data, and play audio in other device with data?

Some one can help me, please?

Edit:

I have find this in a chinese website, it say we can read data in CMSamplerBufferRef with OpenAL. I have try the code in my project, it seems OpenAL and AvCaptureSession with audio can not work together, because OpenAL with a file works just fun. some one can help me with that?????

0

There are 0 best solutions below