Merge "Cleanup loop termination logic in AudioRecord::obtainBuffer()"