Skip to content

Implementation of the missing feature in Android SDK: audio recorder with a pause.

License

Notifications You must be signed in to change notification settings

substantial/continuous-audiorecorder

 
 

Repository files navigation

Continuous audiorecorder

Implementation of the missing feature in Android SDK: audio recorder with a pause. Based on mp4parser.

Build status: Build Status

Latest sample build

Import

Just copy the recorder module into your project and add new dependency:

dependencies {
    compile project(':recorder')
}

Usage

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.

About

Implementation of the missing feature in Android SDK: audio recorder with a pause.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%