Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ebc80c8c authored by Jean-Michel Trivi's avatar Jean-Michel Trivi
Browse files

AudioPolicy: media dynamic mix is fixed volume

Bug: 70859923
Test: gts-tradefed run-gts -m GtsGmscoreHostTestCases -t 'com.google.android.gts.audio.AudioHostTest#testTwoChannelCapturing'
Change-Id: Ie9a30e2607ae4ae9a9dd128e3bd80d7582eb381e
parent 11817c6b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -400,6 +400,7 @@ public class AudioPolicy {
                new AudioAttributes.Builder()
                        .setInternalCapturePreset(MediaRecorder.AudioSource.REMOTE_SUBMIX)
                        .addTag(addressForTag(mix))
                        .addTag(AudioRecord.SUBMIX_FIXED_VOLUME)
                        .build(),
                mixFormat,
                AudioRecord.getMinBufferSize(mix.getFormat().getSampleRate(),