summaryrefslogtreecommitdiff
path: root/dom/media/MediaInfo.h
diff options
context:
space:
mode:
authorJeremy Andrews <athenian200@outlook.com>2021-08-24 16:07:22 -0500
committerJeremy Andrews <athenian200@outlook.com>2021-08-24 16:07:22 -0500
commit89c3761e5c995efbd5d6039f938773c5259e947d (patch)
tree8eeb25f606609001ff30ee287ad74c8356a90c17 /dom/media/MediaInfo.h
parent893fc903790e1ca5bba598113c49d94a165e333b (diff)
downloaduxp-89c3761e5c995efbd5d6039f938773c5259e947d.tar.gz
Issue #1806 - Part 5: Add multichannel audio capability.
I'm positive this works on Windows at the very least. Cubeb added proper channel map support at some point, and this allows us to take advantage of that. Ref: BZ 1431221, BZ 1432779
Diffstat (limited to 'dom/media/MediaInfo.h')
-rw-r--r--dom/media/MediaInfo.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/dom/media/MediaInfo.h b/dom/media/MediaInfo.h
index 658c7c3fa7..29dcf2cc97 100644
--- a/dom/media/MediaInfo.h
+++ b/dom/media/MediaInfo.h
@@ -314,6 +314,7 @@ public:
EmptyString(), EmptyString(), true, 1)
, mRate(0)
, mChannels(0)
+ , mChannelMap(AudioConfig::ChannelLayout::UNKNOWN_MAP)
, mBitDepth(0)
, mProfile(0)
, mExtendedProfile(0)
@@ -326,6 +327,7 @@ public:
: TrackInfo(aOther)
, mRate(aOther.mRate)
, mChannels(aOther.mChannels)
+ , mChannelMap(aOther.mChannelMap)
, mBitDepth(aOther.mBitDepth)
, mProfile(aOther.mProfile)
, mExtendedProfile(aOther.mExtendedProfile)
@@ -362,6 +364,11 @@ public:
// Number of audio channels.
uint32_t mChannels;
+ // The AudioConfig::ChannelLayout map. Channels are ordered as per SMPTE
+ // definition. A value of UNKNOWN_MAP indicates unknown layout.
+ // ChannelMap is an unsigned bitmap compatible with Windows' WAVE and FFmpeg
+ // channel map.
+ uint32_t mChannelMap;
// Bits per sample.
uint32_t mBitDepth;