Update AudioCapture.java

To Change the code according to new requirements.