I got the recorded AudioQueueBufferRef buffer using the following code.
NSData *data = [NSData dataWithBytes:inBuffer->mAudioData length:inBuffer->mAudioDataByteSize];
And then, I send the data to my server. However, FFMPEG isn't able to read that because the data is not in any audio standard format.
It's just plain data.
So, how do I do either on iPhone or backend ffmpeg to convert that raw buffer to WAV?
Thank so much.