Add comment for workaround

This commit is contained in:
Oliver Woodman 2016-12-20 12:33:04 +00:00
parent efc8f6fe42
commit 0d135d37b8

View file

@ -443,6 +443,8 @@ public final class AudioTrack {
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: