June 30th, 2011, 02:33 AM
|
#1 (permalink)
|
|
New Member
Join Date: Jun 2011
Posts: 2
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
|
Audio Recording error!!!
I am trying to record from mic with Media recorder and this gives me an error like unsupported parameter when i setAudioSource.Did anyone had this problem??
System.out.println("recording2");
mRecorder.setAudioSource(MediaRecorder.AudioSource .MIC);
System.out.println("recording3");
mRecorder.setOutputFormat(MediaRecorder.OutputForm at.THREE_GPP);
System.out.println("recording4");
mRecorder.setOutputFile(mFileName);
System.out.println("recording5");
mRecorder.setAudioEncoder(MediaRecorder.AudioEncod er.AMR_NB);
try {
mRecorder.prepare();
} catch (IOException e) {
Log.e(LOG_TAG, "prepare() failed888");
}
|
|
|