Skip to content

Commit

Permalink
fix unsupported multichannel
Browse files Browse the repository at this point in the history
  • Loading branch information
sevenrats committed Sep 12, 2023
1 parent fc3c7de commit 0cd92e8
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions source/utils/deviceCapabilities.brs
Original file line number Diff line number Diff line change
Expand Up @@ -797,6 +797,25 @@ function getDeviceProfile() as object
deviceProfile.CodecProfiles.push(codecProfileArray)
end if

' some audio codecs do not support multichannel
for each audioCodec in ["opus"]
for each codecType in ["VideoAudio", "Audio"]
codecProfileArray = {
"Type": codecType,
"Codec": audioCodec,
"Conditions": [
{
"Condition": "LessThanEqual",
"Property": "AudioChannels",
"Value": "2",
"IsRequired": true
}
]
}
deviceProfile.CodecProfiles.push(codecProfileArray)
end for
end for

return deviceProfile
end function

Expand Down

0 comments on commit 0cd92e8

Please sign in to comment.