Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

round capacity up to get a FAST input path #217

Merged
merged 1 commit into from
Sep 19, 2018
Merged

round capacity up to get a FAST input path #217

merged 1 commit into from
Sep 19, 2018

Conversation

philburk
Copy link
Collaborator

Workaround for a limitation in AudioFlinger on Legacy AAudio data path.
INPUT stream capacity must be 4096 to get a FAST track.

Fixes #183

Workaround for a limitation in AudioFlinger on Legacy AAudio data path.
INPUT stream capacity must be 4096 to get a FAST track.

Fixes #183
// If the app requests > 4096 then we allow it but we are less likely to get LowLatency.
// See internal bug b/80308183 for more details.
int32_t capacity = mBufferCapacityInFrames;
constexpr int kCapacityRequiredForFastLegacyTrack = 4096; // matches value in AudioFinger
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: AudioFlinger

@philburk philburk merged commit fc288aa into master Sep 19, 2018
@philburk philburk deleted the capacity4096 branch September 22, 2018 01:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants