0 Replies
      Latest reply on Apr 16, 2019 1:46 AM by vidhi123
      vidhi123 Level 1 Level 1 (0 points)

        I am able to get AudioBufferList from the remote audio stream.
        Now i want to save this audio stream in my local file which i can play later.

        I have tried this code

         

        NSMutableData *data= [NSMutableData data];

         

        Float32 *frame = (Float32*)audio_buffer->mData;

        [data appendBytes:frame length:audio_buffer->mDataByteSize];

         

        self.audioPlayer = [[AVAudioPlayer alloc] initWithdata : data error: &error];

         

        But it is not working for me.