mirror of
https://github.com/samsonjs/media.git
synced 2026-06-28 05:29:33 +00:00
Since DEFAULT_MAX_CHANNEL_COUNT was increased from 8 to 10, getMaxSupportedChannelCountForPassthrough always throws if its loop enters its second iteration (channelCount of 9). This is due to Util.getAudioTrackChannelConfig returning CHANNEL_INVALID when passed a channelCount of 9, and setting CHANNEL_INVALID as the AudioFormat's channel mask throws an exception. This change skips each iteration where CHANNEL_INVALID is returned. |
||
|---|---|---|
| .. | ||
| androidTest | ||
| main | ||
| test | ||