summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDanesh M <daneshm90@gmail.com>2014-12-04 13:26:54 -0800
committerEthan Chen <intervigil@gmail.com>2015-01-08 12:46:19 -0800
commit378d46f2b3470180daa2de652cfef1e2d818c648 (patch)
tree66453edd67ad4a8019c8e8ebb2383017f365a8b5
parent9266667754513d18709d8833dadc51a8bedfc42a (diff)
downloadandroid_hardware_qcom_fm-378d46f2b3470180daa2de652cfef1e2d818c648.tar.gz
android_hardware_qcom_fm-378d46f2b3470180daa2de652cfef1e2d818c648.tar.bz2
android_hardware_qcom_fm-378d46f2b3470180daa2de652cfef1e2d818c648.zip
FMRadio : Switch file extension to aac
Change-Id: I7e44a8835c450697765c41fafdf325c1e2043b49
-rw-r--r--FMRecord/src/com/codeaurora/fmrecording/FMRecordingService.java6
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 e95a148..25f1aab 100644
--- a/FMRecord/src/com/codeaurora/fmrecording/FMRecordingService.java
+++ b/FMRecord/src/com/codeaurora/fmrecording/FMRecordingService.java
@@ -239,7 +239,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");
@@ -250,7 +250,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();
@@ -359,7 +359,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;