app/src/main/java/org/sil/hearthis/WavAudioRecorder.java
/**
	 * 
	 * 
	 * Starts the recording, and sets the state to RECORDING.
	 * Call after prepare().
	 * 
	 */
Starts the recording, and sets the state to RECORDING.
Call after prepare().
Starts the recording and sets the state to RECORDING . Call after prepare () .
public void start() {
		WasMonitoring = false;
		if (state == State.MONITORING) {
			audioRecorder.stop();
			state = State.READY;
			WasMonitoring = true;
		}
		if (state == State.READY) {
			payloadSize = 0;
			audioRecorder.startRecording();
			audioRecorder.read(buffer, 0, buffer.length);	
			state = State.RECORDING;
		} else {
			Log.e(WavAudioRecorder.class.getName(), "start() called on illegal state");
			state = State.ERROR;
		}
	}
public void start ( ) { WasMonitoring = false ; if ( state == State . MONITORING ) { audioRecorder . stop ( ) ; state = State . READY ; WasMonitoring = true ; } if ( state == State . READY ) { payloadSize = 0 ; audioRecorder . startRecording ( ) ; audioRecorder . read ( buffer , 0 , buffer . length ) ; state = State . RECORDING ; } else { Log . e ( WavAudioRecorder . class . getName ( ) , "start() called on illegal state" ) ; state = State . ERROR ; } }
//[TODO: is this necessary]read the existing data in audio hardware, but don't do anything