diff options
author | Danesh M <daneshm90@gmail.com> | 2014-12-04 13:26:54 -0800 |
---|---|---|
committer | Danesh M <daneshm90@gmail.com> | 2014-12-04 22:07:04 +0000 |
commit | 4a625a6d02b82d1fc3a5256d1b5eb7f187f6bc14 (patch) | |
tree | 33329625ab56250c2ed4c1f379c3d2d124fb72c7 | |
parent | 1955ca3ded22961f2db3821c3afaca3082acd677 (diff) | |
download | android_hardware_qcom_fm-4a625a6d02b82d1fc3a5256d1b5eb7f187f6bc14.tar.gz android_hardware_qcom_fm-4a625a6d02b82d1fc3a5256d1b5eb7f187f6bc14.tar.bz2 android_hardware_qcom_fm-4a625a6d02b82d1fc3a5256d1b5eb7f187f6bc14.zip |
FMRadio : Switch file extension to aaccm-11.0-XNPH05Q-tomato-9828f8e9ccstable/cm-11.0-XNF8Ystable/cm-11.0shipping/cm-11.0
Change-Id: I7e44a8835c450697765c41fafdf325c1e2043b49
(cherry picked from commit 35efa3b4c3434b30d0ac3557fd46a56abe4b564e)
-rw-r--r-- | FMRecord/src/com/codeaurora/fmrecording/FMRecordingService.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/FMRecord/src/com/codeaurora/fmrecording/FMRecordingService.java b/FMRecord/src/com/codeaurora/fmrecording/FMRecordingService.java index febbbde..9a09e8e 100644 --- a/FMRecord/src/com/codeaurora/fmrecording/FMRecordingService.java +++ b/FMRecord/src/com/codeaurora/fmrecording/FMRecordingService.java @@ -262,7 +262,7 @@ public class FMRecordingService extends Service { File sampleDir = getExternalCacheDir(); try { - mSampleFile = new File(sampleDir, "FMRecording.3gpp"); + mSampleFile = new File(sampleDir, "FMRecording.aac"); mSampleFile.createNewFile(); } catch (IOException e) { Log.e(TAG, "Not able to access SD Card"); @@ -273,7 +273,7 @@ public class FMRecordingService extends Service { mRecorder.setAudioSource(MediaRecorder.AudioSource.FM_RX); mRecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); mRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AAC); - mAudioType = "audio/3gpp"; + mAudioType = "audio/aac"; } catch (RuntimeException exception) { Log.d(TAG, "RuntimeException while settings"); mRecorder.reset(); @@ -373,7 +373,7 @@ public class FMRecordingService extends Service { if (Environment.MEDIA_MOUNTED.equals(state)) { File finalFile; try { - finalFile = File.createTempFile("FMRecording", ".3gpp", + finalFile = File.createTempFile("FMRecording", ".aac", Environment.getExternalStorageDirectory()); mSampleFile.renameTo(finalFile); mSampleFile = finalFile; |