Skip to content

Commit 0d135d3

Browse files
committed
Add comment for workaround
1 parent efc8f6f commit 0d135d3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

library/src/main/java/com/google/android/exoplayer2/audio/AudioTrack.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,8 @@ public void configure(String mimeType, int channelCount, int sampleRate,
443443
default:
444444
throw new IllegalArgumentException("Unsupported channel count: " + channelCount);
445445
}
446+
447+
// Workaround for overly strict channel configuration checks on nVidia Shield.
446448
if (Util.SDK_INT <= 23 && "foster".equals(Util.DEVICE) && "NVIDIA".equals(Util.MANUFACTURER)) {
447449
switch(channelCount) {
448450
case 7:

0 commit comments

Comments
 (0)