Football Fans: Download the 2012 Schedule App from Google Play!


Go Back   Android Forums > Android Discussion > Android Media

Android Media For Ringtones, Video, TV, Audio or anything else Multimedia related...



Reply
 
LinkBack Thread Tools
Old 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
Default 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");
}

vas88y is offline  
Reply With Quote
Sponsors
Reply

Bookmarks

Tags
audio, recording


Go Back   Android Forums > Android Discussion > Android Media User CP
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -5. The time now is 03:07 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Custom vBulletin Skins by: Relivo