/** * Stops recording. * * @throws IllegalStateException */ public void stop() throws IllegalStateException { if (mState != STATE_INITIALIZED) { throw new IllegalStateException("stop() called on an uninitialized AudioRecord."); } // stop recording synchronized (mRecordingStateLock) { native_stop(); mRecordingState = RECORDSTATE_STOPPED; } }