Extend Nexus Player mono workaround to Oreo

The platform fix was merged into O MR1, not O. Nexus Player has
not received this build.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=206734342
This commit is contained in:
andrewlewis 2018-07-31 03:30:17 -07:00 committed by Oliver Woodman
parent 19d24ac633
commit e2bf474c1e

View File

@ -1146,7 +1146,7 @@ public final class DefaultAudioSink implements AudioSink {
// Workaround for Nexus Player not reporting support for mono passthrough. // Workaround for Nexus Player not reporting support for mono passthrough.
// (See [Internal: b/34268671].) // (See [Internal: b/34268671].)
if (Util.SDK_INT <= 25 && "fugu".equals(Util.DEVICE) && !isInputPcm && channelCount == 1) { if (Util.SDK_INT <= 26 && "fugu".equals(Util.DEVICE) && !isInputPcm && channelCount == 1) {
channelCount = 2; channelCount = 2;
} }