I'm playing an audio file and recording at the same time using an object of MediaPlayer and AudioRecorder. I want to stop the recording thread as soon as the tune being played is finished. Is there a way to accomplish this? I'm playing an audio file and recording at the