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

oboe: copy more parameters in FilterAudioStream #1898

Merged
merged 2 commits into from
Aug 16, 2023
Merged

oboe: copy more parameters in FilterAudioStream #1898

merged 2 commits into from
Aug 16, 2023

Conversation

philburk
Copy link
Collaborator

sharingMode and the hardware formats were not getting copied.

It was noticed in OboeTester.
The test specs for TEST DISCONNECT were made more rational.

Also a unit test was added to catch the oboe bug.

Fixes #1897

sharingMode and the hardware formats were not getting copied.

It was noticed in OboeTester.
The test specs for TEST DISCONNECT were made more rational.

Also a unit test was added to catch the oboe bug.

Fixes #1897
@philburk philburk requested a review from robertwu1 August 14, 2023 23:04
mBuilder.setSampleRate(44100);
mBuilder.setSampleRateConversionQuality(SampleRateConversionQuality::Medium);
ASSERT_TRUE(openStream());
ASSERT_LT(0, mStream->getHardwareSampleRate());
Copy link
Collaborator

Choose a reason for hiding this comment

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

getHardware* functions are only supported in Android API 34+. Please wrap this test around an SDK level check.

@philburk philburk merged commit 127e9ba into main Aug 16, 2023
@philburk philburk deleted the disco_ex branch August 16, 2023 15:57
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.

OboeTester TEST DISCONNECT confused about sharing mode
2 participants