File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
app/src/main/java/org/thoughtcrime/securesms/audio Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -125,14 +125,14 @@ fun recordAudio(
125
125
126
126
try {
127
127
val file by lazy {
128
- File .createTempFile(" audio_recording_" , " .m4a " , context.cacheDir)
128
+ File .createTempFile(" audio_recording_" , " .aac " , context.cacheDir)
129
129
}
130
130
131
131
recorder.setAudioSource(MediaRecorder .AudioSource .MIC )
132
132
recorder.setAudioChannels(1 )
133
133
recorder.setAudioSamplingRate(44100 )
134
134
recorder.setAudioEncodingBitRate(32000 )
135
- recorder.setOutputFormat(MediaRecorder .OutputFormat .MPEG_4 )
135
+ recorder.setOutputFormat(MediaRecorder .OutputFormat .AAC_ADTS )
136
136
recorder.setOutputFile(file)
137
137
recorder.setAudioEncoder(MediaRecorder .AudioEncoder .AAC )
138
138
recorder.setOnErrorListener { _, what, extra ->
You can’t perform that action at this time.
0 commit comments