From e9bb289c1b878234bdde767459bc824b94f35931 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sat, 19 Sep 2020 19:43:47 +0200 Subject: [PATCH] fix #1, store files with proper m4a extension --- .../voicerecorder/services/RecorderService.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/voicerecorder/services/RecorderService.kt b/app/src/main/kotlin/com/simplemobiletools/voicerecorder/services/RecorderService.kt index ef738b7..c53c026 100644 --- a/app/src/main/kotlin/com/simplemobiletools/voicerecorder/services/RecorderService.kt +++ b/app/src/main/kotlin/com/simplemobiletools/voicerecorder/services/RecorderService.kt @@ -58,7 +58,7 @@ class RecorderService : Service() { stopRecording() } - // mp4 output format with aac encoding should produce good enough mp3 files according to https://stackoverflow.com/a/33054794/1967672 + // mp4 output format with aac encoding should produce good enough m4a files according to https://stackoverflow.com/a/33054794/1967672 private fun startRecording() { val baseFolder = if (isQPlus()) { cacheDir @@ -71,7 +71,7 @@ class RecorderService : Service() { defaultFolder.absolutePath } - currFilePath = "$baseFolder/${getCurrentFormattedDateTime()}.mp3" + currFilePath = "$baseFolder/${getCurrentFormattedDateTime()}.m4a" recorder = MediaRecorder().apply { setAudioSource(MediaRecorder.AudioSource.CAMCORDER) setOutputFormat(MediaRecorder.OutputFormat.MPEG_4)