/** * Releases the native AudioRecord resources. The object can no longer be used and the reference * should be set to null after a call to release() */ public void release() { try { stop(); } catch (IllegalStateException ise) { // don't raise an exception, we're releasing the resources. } native_release(); mState = STATE_UNINITIALIZED; }