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

Add setPackageName and setAttributionTag to the Oboe builder #1332

Merged
merged 5 commits into from
Jul 14, 2021

Conversation

robertwu1
Copy link
Collaborator

@robertwu1 robertwu1 commented Jul 8, 2021

In Android 12, we added an ability to set Package Names and Attribution Tags to AAudio. We are also doing this in Oboe.
Note that getting the values comes from the context (Context#getPackageName()/Context#getAttributionTag())

Fixes #1282

Tested via:
Built OboeTester
Built and ran unit tests

@robertwu1 robertwu1 requested a review from philburk July 8, 2021 21:16
@robertwu1 robertwu1 requested a review from dturner July 9, 2021 17:00
@robertwu1
Copy link
Collaborator Author

It seems like certain types of streams don't play well with setting the package name. For example, Tap To Tone Latency works perfectly but Glitch Test has some weird bugs. When running the unit tests, some randomly fail setting the package name before
commit 4. @philburk should I assign a bug to Phillip Moltmann?

include/oboe/AudioStreamBase.h Outdated Show resolved Hide resolved
src/aaudio/AAudioLoader.cpp Outdated Show resolved Hide resolved
src/aaudio/AAudioLoader.cpp Outdated Show resolved Hide resolved
src/aaudio/AudioStreamAAudio.cpp Outdated Show resolved Hide resolved
@robertwu1
Copy link
Collaborator Author

@philburk Thanks for adding comments! I removed all of the setters. Let me know if this looks good

@robertwu1 robertwu1 requested a review from philburk July 13, 2021 20:35
@dturner dturner added this to the V1.6.1 milestone Jul 14, 2021
@dturner
Copy link
Collaborator

dturner commented Jul 14, 2021

These features were added to AAudio to allow more detailed logging.

@robertwu1 robertwu1 merged commit 4fa162b into master Jul 14, 2021
@robertwu1 robertwu1 deleted the robertwu/addSetPackageName branch July 14, 2021 17:01
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.

Add support for setPackageName(n)
3 participants