diff options
author | Danesh M <daneshm90@gmail.com> | 2014-12-04 13:26:54 -0800 |
---|---|---|
committer | Matt Wagantall <mwagantall@cyngn.com> | 2016-02-19 14:07:43 -0800 |
commit | deb38276d1bfcad79833d92a83ec4efbf62cd44a (patch) | |
tree | 43448296d1aacec8677c887922190dceac0cfe1e /FMRecord | |
parent | 2a46c790a2e131f1d1a4f554b11b9c46e09665c8 (diff) | |
download | android_hardware_qcom_fm-deb38276d1bfcad79833d92a83ec4efbf62cd44a.tar.gz android_hardware_qcom_fm-deb38276d1bfcad79833d92a83ec4efbf62cd44a.tar.bz2 android_hardware_qcom_fm-deb38276d1bfcad79833d92a83ec4efbf62cd44a.zip |
FMRadio : Switch file extension to aac
Change-Id: I7e44a8835c450697765c41fafdf325c1e2043b49
Diffstat (limited to 'FMRecord')
-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 2aa1684..394bab7 100644 --- a/FMRecord/src/com/codeaurora/fmrecording/FMRecordingService.java +++ b/FMRecord/src/com/codeaurora/fmrecording/FMRecordingService.java @@ -246,10 +246,10 @@ public class FMRecordingService extends Service { return false; try { - mSampleFile = File.createTempFile("FMRecording", ".3gpp", sampleDir); + mSampleFile = File.createTempFile("FMRecording", ".aac", sampleDir); if (getResources().getBoolean(R.bool.def_save_name_format_enabled)) { String suffix = getResources().getString(R.string.def_save_name_suffix); - suffix = "".equals(suffix) ? ".3gpp" : suffix; + suffix = "".equals(suffix) ? ".aac" : suffix; mSampleFile = createTempFile("FMRecording", suffix, sampleDir); } } catch (IOException e) { @@ -261,7 +261,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(); |