Add issue link for AudioCapabilities

This commit is contained in:
Cedric T 2023-05-16 13:45:25 +08:00 committed by Tianyi Feng
parent cb29e8fb3d
commit 424b5d8d0e

View File

@ -229,8 +229,8 @@ public final class AudioCapabilities {
channelCount = getMaxSupportedChannelCountForPassthrough(encoding, sampleRate); channelCount = getMaxSupportedChannelCountForPassthrough(encoding, sampleRate);
} else { } else {
channelCount = format.channelCount; channelCount = format.channelCount;
// To file a Bug: Some DTS:X TVs reports ACTION_HDMI_AUDIO_PLUG.EXTRA_MAX_CHANNEL_COUNT as 8 // Some DTS:X TVs reports ACTION_HDMI_AUDIO_PLUG.EXTRA_MAX_CHANNEL_COUNT as 8
// instead of 10. // instead of 10. See https://github.com/androidx/media/issues/396
if (format.sampleMimeType == MimeTypes.AUDIO_DTS_X) { if (format.sampleMimeType == MimeTypes.AUDIO_DTS_X) {
if (channelCount > 10) { if (channelCount > 10) {
return null; return null;