EZAudio
EZAudio copied to clipboard
how to recorde audio from last stopped state
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 .
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];
}
}