Skip to content

Commit

Permalink
Add comment for workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
ojw28 committed Dec 20, 2016
1 parent efc8f6f commit 0d135d3
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,8 @@ public void configure(String mimeType, int channelCount, int sampleRate,
default:
throw new IllegalArgumentException("Unsupported channel count: " + channelCount);
}

// Workaround for overly strict channel configuration checks on nVidia Shield.
if (Util.SDK_INT <= 23 && "foster".equals(Util.DEVICE) && "NVIDIA".equals(Util.MANUFACTURER)) {
switch(channelCount) {
case 7:
Expand Down

0 comments on commit 0d135d3

Please sign in to comment.