Bug 1456265 - Make ChannelSplitterNode have a channelCountMode of "explicit" and a channelIntepretation of "discrete" by default. r?achronop draft
authorPaul Adenot <paul@paul.cx>
Tue, 29 May 2018 17:18:39 +0200
changeset 800965 42f845da213bcb73fb3400d6628e3ffc15b3992b
parent 800874 f01bb6245db1ea2a87e5360104a4110571265137
push id111534
push userpaul@paul.cx
push dateTue, 29 May 2018 15:28:24 +0000
reviewersachronop
bugs1456265
milestone62.0a1
Bug 1456265 - Make ChannelSplitterNode have a channelCountMode of "explicit" and a channelIntepretation of "discrete" by default. r?achronop MozReview-Commit-ID: 5pAdWn9zV9e
dom/media/webaudio/ChannelSplitterNode.cpp
--- a/dom/media/webaudio/ChannelSplitterNode.cpp
+++ b/dom/media/webaudio/ChannelSplitterNode.cpp
@@ -48,19 +48,19 @@ public:
   {
     return aMallocSizeOf(this) + SizeOfExcludingThis(aMallocSizeOf);
   }
 };
 
 ChannelSplitterNode::ChannelSplitterNode(AudioContext* aContext,
                                          uint16_t aOutputCount)
   : AudioNode(aContext,
-              2,
-              ChannelCountMode::Max,
-              ChannelInterpretation::Speakers)
+              6,
+              ChannelCountMode::Explicit,
+              ChannelInterpretation::Discrete)
   , mOutputCount(aOutputCount)
 {
   mStream = AudioNodeStream::Create(aContext,
                                     new ChannelSplitterNodeEngine(this),
                                     AudioNodeStream::NO_STREAM_FLAGS,
                                     aContext->Graph());
 }