Implementation of the missing feature in Android SDK: audio recorder with a pause. Based on mp4parser.
Just copy the recorder
module into your project and add new dependency:
dependencies {
compile project(':recorder')
}
Start recording:
AudioRecorder recorder = AudioRecorder.build(context, filename);
recorder.start(new AudioRecorder.OnStartListener() {
@Override
public void onStarted() {
// started
}
@Override
public void onException(Exception e) {
// error
}
});
Pause:
mAudioRecorder.pause(new AudioRecorder.OnPauseListener() {
@Override
public void onPaused(String activeRecordFileName) {
// paused
}
@Override
public void onException(Exception e) {
// error
}
});
Use start()
method to continue recording.
This project is licensed under the FreeBSD License.