Minor changes to recording processing logics.
Minor changes to recording processing logics.

Play and record should have to call endAudioRecording less frequently now. Future audio processing calls that do not need to record the data now make the capping call to end recording. May produce some asynchronous behavior and result in some lag if multiple calls are made due to race conditions, but should not present a major problem anyways.

wqian94/AuO,wqian94/AuO,wqian94/AuO