google / oboe

Oboe is a C++ library that makes it easy to build high-performance audio apps on Android.
Apache License 2.0
3.72k stars 573 forks source link

OboeTester can use setPreferredMixerAttributes() to reduce USB latency #2096

Open philburk opened 2 months ago

philburk commented 2 months ago

The latency tests can use AudioManager.setPreferredMixerAttributes() to make the USB formats match the app attributes more closely. This can prevent extra processing and reduce latency. [internal discussion]

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.