FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

oboe: add Quirk for broken mono on S9 by philburk · Pull Request #890 · google/oboe · GitHub

/ oboe Public

oboe: add Quirk for broken mono on S9 - #890

Merged
philburk merged 4 commits into
masterfrom
fixmono824
Jun 17, 2020
Merged

philburk merged 4 commits into
masterfrom
fixmono824

Conversation

Copy link
Copy Markdown
Contributor

The Samsung S9 does not support mono properly.
It is actually stereo. So on that device, we open a stereo
stream and then convert it to mono by extracting
the first channel.

Fixes #824

The Samsung S9 does not support mono properly.
It is actually stereo. So on that device, we open a stereo
stream and then convert it to mono by extracting
the first channel.

Fixes #824
philburk requested review from android-usb and dturner June 12, 2020 00:34
Comment thread src/common/QuirksManager.cpp Outdated
This is used by the QuirksManager.
Comment thread CMakeLists.txt
src/flowgraph/ClipToRange.cpp
src/flowgraph/ManyToMultiConverter.cpp
src/flowgraph/MonoToMultiConverter.cpp
src/flowgraph/MultiToMonoConverter.cpp

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Couldn't both MultiToMono and MonoToMulti be contained within single ChannelCountConverter which takes an arbitrary number of input and output channels?

philburk Jun 16, 2020
edited
Loading

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I added a ChannelCountConverter for the previous unsupported case, eg "2:3". But it looks a bit more complex and is slower than the Mono nodes. So I kept them as optimizations for the mono cases.

Comment thread src/common/DataConversionFlowGraph.cpp Outdated
Comment thread src/common/QuirksManager.cpp Outdated
Comment thread src/common/QuirksManager.cpp Outdated
) {
// Workaround for heap size regression in O.
// b/66967812 AudioRecord does not allow FAST track for stereo capture in O
childBuilder.setChannelCount(1);

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Constant?

Comment thread src/common/QuirksManager.cpp Outdated
Comment thread src/common/QuirksManager.cpp Outdated

dturner left a comment

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

See comments


private:

static constexpr int32_t kChannelCountMono = 1;

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Rather than add these I think you can use the oboe::ChannelCount::* constants

philburk merged commit cb01be5 into master Jun 17, 2020
philburk deleted the fixmono824 branch June 17, 2020 18:21
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

Audio input pitched down 1 octave on Samsung S9, broken mono

2 participants


Back | FazBrowse Home | New Git URL