EZAudio icon indicating copy to clipboard operation
EZAudio copied to clipboard

how to recorde audio from last stopped state

Open sahabe1 opened this issue 8 years ago • 1 comments

Hi I want to recorder audio file for 10 second then stop again i start recording is possible to start recording from 11 second

just want to append new reorder to previous recorded file .

sahabe1 avatar Apr 26 '17 18:04 sahabe1

If you don't perform closeAudioFile, then you should be able to set an isRecording boolean flag to decide if to append data or not, while the mic is fetching.

eg:

- (void)   microphone:(EZMicrophone *)microphone
        hasBufferList:(AudioBufferList *)bufferList
       withBufferSize:(UInt32)bufferSize
 withNumberOfChannels:(UInt32)numberOfChannels
{
    if (self.isRecording)
    {
        [self.recorder appendDataFromBufferList:bufferList
                                 withBufferSize:bufferSize];
    }
}

kosso avatar May 04 '17 12:05 kosso