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 startMonitoring() {
		if (state == State.INITIALIZING) {
			buffer = new byte[mPeriodInFrames*mBitsPersample/8*nChannels];
			audioRecorder.startRecording();
			audioRecorder.read(buffer, 0, buffer.length);	
			state = State.MONITORING;
		} else {
			Log.e(WavAudioRecorder.class.getName(), "startMonitoring() called on illegal state");
			state = State.ERROR;
		}
	}
public void startMonitoring ( ) { if ( state == State . INITIALIZING ) { buffer = new byte [ mPeriodInFrames * mBitsPersample / 8 * nChannels ] ; audioRecorder . startRecording ( ) ; audioRecorder . read ( buffer , 0 , buffer . length ) ; state = State . MONITORING ; } else { Log . e ( WavAudioRecorder . class . getName ( ) , "startMonitoring() called on illegal state" ) ; state = State . ERROR ; } }
Starts the recording, and sets the state to RECORDING.
Starts the recording and sets the state to RECORDING .
//[TODO: is this necessary]read the existing data in audio hardware, but don't do anything