diff options
author | Danesh M <daneshm90@gmail.com> | 2014-12-04 13:26:54 -0800 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2014-12-04 22:06:57 +0000 |
commit | 35efa3b4c3434b30d0ac3557fd46a56abe4b564e (patch) | |
tree | 1da3eaf70c8a89f88e0f9eee0a9b8a73f50194c7 | |
parent | d8205e2959ef6708994a9e314f27034ddc11548e (diff) | |
download | android_hardware_qcom_fm-35efa3b4c3434b30d0ac3557fd46a56abe4b564e.tar.gz android_hardware_qcom_fm-35efa3b4c3434b30d0ac3557fd46a56abe4b564e.tar.bz2 android_hardware_qcom_fm-35efa3b4c3434b30d0ac3557fd46a56abe4b564e.zip |
FMRadio : Switch file extension to aac
Change-Id: I7e44a8835c450697765c41fafdf325c1e2043b49
-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; |