summaryrefslogtreecommitdiff
path: root/dom/media/AudioStream.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/AudioStream.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/AudioStream.h')
-rw-r--r--dom/media/AudioStream.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/dom/media/AudioStream.h b/dom/media/AudioStream.h
index 199314d4b6..e138ab991a 100644
--- a/dom/media/AudioStream.h
+++ b/dom/media/AudioStream.h
@@ -192,9 +192,10 @@ public:
explicit AudioStream(DataSource& aSource);
// Initialize the audio stream. aNumChannels is the number of audio
- // channels (1 for mono, 2 for stereo, etc) and aRate is the sample rate
+ // channels (1 for mono, 2 for stereo, etc), aChannelMap is the indicator for
+ // channel layout(mono, stereo, 5.1 or 7.1 ) and aRate is the sample rate
// (22050Hz, 44100Hz, etc).
- nsresult Init(uint32_t aNumChannels, uint32_t aRate,
+ nsresult Init(uint32_t aNumChannels, uint32_t aChannelMap, uint32_t aRate,
const dom::AudioChannel aAudioStreamChannel);
// Closes the stream. All future use of the stream is an error.