New to iOS 12 development and wondering if someone can help. I am trying to take the audio from the recording of Broadcast Upload Extension.
Specifically, from this code:
override func processSampleBuffer(_ sampleBuffer: CMSampleBuffer, with sampleBufferType: RPSampleBufferType) {
switch sampleBufferType {
case RPSampleBufferType.audioApp:
// Handle audio sample buffer for app audio
// NEED HELP HERE
break
}
}
How do I take the CMSampleBuffer during the processing and keep appending the buffer to an audio file which then I can play later?
I will figure out how to play the file, I just need some guidance please for what to do with the CMSampleBuffer to eventually get it into one audio file.
Thank you so much for any help or suggestions