OSDN Git Service

Update SoundRecorder to use new AMR format OutputFormat.AMR_NB
authorJianhong Jiang <jianhong@google.com>
Wed, 13 May 2009 01:28:25 +0000 (18:28 -0700)
committerJianhong Jiang <jianhong@google.com>
Wed, 13 May 2009 01:28:25 +0000 (18:28 -0700)
src/com/android/soundrecorder/SoundRecorder.java

index 45eaa70..ebafcb8 100644 (file)
@@ -367,7 +367,7 @@ public class SoundRecorder extends Activity
 
                     if (AUDIO_AMR.equals(mRequestedType)) {
                         mRemainingTimeCalculator.setBitRate(BITRATE_AMR);
-                        mRecorder.startRecording(MediaRecorder.OutputFormat.RAW_AMR, ".amr");
+                        mRecorder.startRecording(MediaRecorder.OutputFormat.AMR_NB, ".amr");
                     } else if (AUDIO_3GPP.equals(mRequestedType)) {
                         mRemainingTimeCalculator.setBitRate(BITRATE_3GPP);
                         mRecorder.startRecording(MediaRecorder.OutputFormat.THREE_GPP, ".3gpp");