public void discardRecording(){
  Log.d(TAG,">> discardRecording");
  if ((STATE_RECORDING == mInternalState) && (null != mRecorder)) {
    stopRecorder();
  }
 else   if ((STATE_PLAYBACK == mInternalState) && (null != mPlayer)) {
    stopPlayer();
  }
  if (null != mRecordFile && !mIsRecordingFileSaved) {
    if (!mRecordFile.delete()) {
      Log.d(TAG,"discardRecording: deletion failed!");
    }
    mRecordFile=null;
    mRecordStartTime=0;
    mRecordTime=0;
  }
  setState(STATE_IDLE);
  Log.d(TAG,"<< discardRecording");
}

public void discardRecording ( ) { Log . d ( TAG , ">> discardRecording" ) ; if ( ( STATE_RECORDING == mInternalState ) && ( null != mRecorder ) ) { stopRecorder ( ) ; } else if ( ( STATE_PLAYBACK == mInternalState ) && ( null != mPlayer ) ) { stopPlayer ( ) ; } if ( null != mRecordFile && ! mIsRecordingFileSaved ) { if ( ! mRecordFile . delete ( ) ) { Log . d ( TAG , "discardRecording: deletion failed!" ) ; } mRecordFile = null ; mRecordStartTime = 0 ; mRecordTime = 0 ; } setState ( STATE_IDLE ) ; Log . d ( TAG , "<< discardRecording" ) ; }
discard current recording file , release recorder and player
