AudioTrack checks the channel configuration against a mask of allowed channels. Before Android M the check in getMinBufferSize would always fail for 8 channel output. For Android L constants are available to build the required channel configuration for a conventional 7.1 setup and these constants are part of the allowed channels mask, so switch to using them. Before Android L the constants for 7.1 aren't in the allowed channels mask, so discard channels to give a 5.1 stream. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=206307892
| Name |
Last commit
|
Last Update |
|---|---|---|
| .idea | Loading commit data... | |
| demos | Loading commit data... | |
| extensions | Loading commit data... | |
| gradle/wrapper | Loading commit data... | |
| library | Loading commit data... | |
| playbacktests | Loading commit data... | |
| testutils | Loading commit data... | |
| testutils_robolectric | Loading commit data... | |
| .gitignore | Loading commit data... | |
| .hgignore | Loading commit data... | |
| CONTRIBUTING.md | Loading commit data... | |
| ISSUE_TEMPLATE | Loading commit data... | |
| LICENSE | Loading commit data... | |
| README.md | Loading commit data... | |
| RELEASENOTES.md | Loading commit data... | |
| build.gradle | Loading commit data... | |
| constants.gradle | Loading commit data... | |
| core_settings.gradle | Loading commit data... | |
| gradle.properties | Loading commit data... | |
| gradlew | Loading commit data... | |
| gradlew.bat | Loading commit data... | |
| javadoc_combined.gradle | Loading commit data... | |
| javadoc_library.gradle | Loading commit data... | |
| javadoc_util.gradle | Loading commit data... | |
| publish.gradle | Loading commit data... | |
| settings.gradle | Loading commit data... |