OboeTester can use setPreferredMixerAttributes() to reduce USB latency
Open
enhancement
P1
- Dominant language
- C++
- Stars
- 4.1k
- Forks
- 639
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 8
Description
The latency tests can use [AudioManager.setPreferredMixerAttributes()](https://developer.android.com/reference/android/media/AudioManager#setPreferredMixerAttributes(android.media.AudioAttributes,%20android.media.AudioDeviceInfo,%20android.media.AudioMixerAttributes)) to make the USB formats match the app attributes more closely.
This can prevent extra processing and reduce latency. [[internal discussion]](https://b.corp.google.com/issues/364387399)
The preference should be cleared when the test is finished.
The supported attributes can be listed in the DeviceReport.
If this works well then we can move it into CTS Verifier.
Contributor guide
Assessment
This issue has not been assessed yet.