Index: third_party/WebKit/Source/modules/webaudio/ChannelMergerNode.cpp |
diff --git a/third_party/WebKit/Source/modules/webaudio/ChannelMergerNode.cpp b/third_party/WebKit/Source/modules/webaudio/ChannelMergerNode.cpp |
index b0b98e2bbcd64854e94ec70fe92f813f575aebc9..9416c8d6d5fe2f7e9dc192a959dfd9f47bdff04e 100644 |
--- a/third_party/WebKit/Source/modules/webaudio/ChannelMergerNode.cpp |
+++ b/third_party/WebKit/Source/modules/webaudio/ChannelMergerNode.cpp |
@@ -34,6 +34,7 @@ |
#include "modules/webaudio/AudioNodeInput.h" |
#include "modules/webaudio/AudioNodeOutput.h" |
#include "modules/webaudio/BaseAudioContext.h" |
+#include "modules/webaudio/ChannelMergerOptions.h" |
namespace blink { |
@@ -158,5 +159,19 @@ ChannelMergerNode* ChannelMergerNode::create(BaseAudioContext& context, unsigned |
return new ChannelMergerNode(context, numberOfInputs); |
} |
+ChannelMergerNode* ChannelMergerNode::create(BaseAudioContext* context, const ChannelMergerOptions& options, ExceptionState& exceptionState) |
+{ |
+ ChannelMergerNode* node; |
+ |
+ node = create(*context, options.numberOfInputs(), exceptionState); |
haraken
2016/09/13 00:13:20
ChannelMergerNode* node = create(...)
Raymond Toy
2016/09/13 15:44:57
Done.
|
+ |
+ if (!node) |
+ return nullptr; |
+ |
+ node->handleChannelOptions(options, exceptionState); |
+ |
+ return node; |
+} |
+ |
} // namespace blink |