Skip to content

oboe: copy more parameters in FilterAudioStream#1898

Merged
philburk merged 2 commits intomainfrom
disco_ex
Aug 16, 2023
Merged

oboe: copy more parameters in FilterAudioStream#1898
philburk merged 2 commits intomainfrom
disco_ex

Conversation

@philburk
Copy link
Copy Markdown
Contributor

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
Copy Markdown
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