google / google/oboe

OboeTester can use setPreferredMixerAttributes() to reduce USB latency

Open
#2,096 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.