switch to aac with slightly heigher sample and bit rate. fixes #3021

This commit is contained in:
Daniel Gultsch 2018-05-11 10:08:45 +02:00
parent 678fcf8b31
commit 170fbf0de3
1 changed files with 3 additions and 3 deletions

View File

@ -87,9 +87,9 @@ public class RecordingActivity extends Activity implements View.OnClickListener
mRecorder = new MediaRecorder();
mRecorder.setAudioSource(MediaRecorder.AudioSource.MIC);
mRecorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4);
mRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.HE_AAC);
mRecorder.setAudioEncodingBitRate(48000);
mRecorder.setAudioSamplingRate(16000);
mRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AAC);
mRecorder.setAudioEncodingBitRate(96000);
mRecorder.setAudioSamplingRate(22050);
setupOutputFile();
mRecorder.setOutputFile(mOutputFile.getAbsolutePath());