package com.github.lassana.continuos_audiorecorder.recorder;

/**
 * @author lassana
 * @since 8/18/13
 */
public class AudioRecorder {

    public static enum Status {
        STATUS_UNKNOWN,
        STATUS_READY,
        STATUS_RECORDING,
        STATUS_PAUSED
    }

    public static interface OnError {
        public void onError();
    }

    public static interface OnStartListener extends OnError {
        public void onStarted();
    }

    public static interface OnPauseListener extends OnError {
        public void onStarted();
    }

    public static interface OnStopListener extends OnError {
        public void onStarted();
    }

    private Status mStatus;
    private String mActiveRecordFileName;

    private AudioRecorder() {
        mStatus = Status.STATUS_UNKNOWN;
        mActiveRecordFileName = null;
    }

    public static AudioRecorder build() {
        return new AudioRecorder();
    }

    public void start(final OnStartListener listener) {

    }

    public void pause(final OnPauseListener listener) {

    }

    public void stop(final OnStopListener listener) {

    }

    public Status getStatus() {
        return mStatus;
    }

    public String getRecordFileName() {
        return mActiveRecordFileName;
    }

    public boolean isRecording() {
        return mStatus == Status.STATUS_RECORDING;
    }

    public boolean isReady() {
        return mStatus == Status.STATUS_READY;
    }

    public boolean isPaused() {
        return mStatus == Status.STATUS_PAUSED;
    }
}

@@ -529,114 +529,12 @@
 d on
-Started();%0A    %7D%0A%0A    public static interface OnStopListener extends OnError %7B%0A        public void onStart
+Paus
 ed()
@@ -806,32 +806,100 @@
 order();%0A    %7D%0A%0A
+    /**%0A     * %D0%A1ontinues existing record or starts new one.%0A     */%0A
     public void 
@@ -954,67 +954,51 @@
     
-public void pause(final OnPauseListener listener) %7B%0A%0A
+/**%0A     * Pauses active recording.%0A 
     
-%7D%0A
+*/
 %0A   
@@ -1014,12 +1014,13 @@
 oid 
-stop
+pause
 (fin
@@ -1028,12 +1028,13 @@
 l On
-Stop
+Pause
 List

Remove method "stop" from AudioRecorder.