Index: third_party/WebKit/Source/modules/webaudio/ChannelSplitterNode.cpp |
diff --git a/third_party/WebKit/Source/modules/webaudio/ChannelSplitterNode.cpp b/third_party/WebKit/Source/modules/webaudio/ChannelSplitterNode.cpp |
index 35aafaca1cb9b43f460e4f7036ff48352cbd7df6..572e18ea40c749d10fe45549ee2d16f5dc5cf820 100644 |
--- a/third_party/WebKit/Source/modules/webaudio/ChannelSplitterNode.cpp |
+++ b/third_party/WebKit/Source/modules/webaudio/ChannelSplitterNode.cpp |
@@ -29,6 +29,7 @@ |
#include "modules/webaudio/AudioNodeInput.h" |
#include "modules/webaudio/AudioNodeOutput.h" |
#include "modules/webaudio/BaseAudioContext.h" |
+#include "modules/webaudio/ChannelSplitterOptions.h" |
namespace blink { |
@@ -113,5 +114,19 @@ ChannelSplitterNode* ChannelSplitterNode::create(BaseAudioContext& context, unsi |
return new ChannelSplitterNode(context, numberOfOutputs); |
} |
+ChannelSplitterNode* ChannelSplitterNode::create(BaseAudioContext* context, const ChannelSplitterOptions& options, ExceptionState& exceptionState) |
+{ |
+ ChannelSplitterNode* node; |
+ |
+ node = create(*context, options.numberOfOutputs(), exceptionState); |
haraken
2016/09/13 00:13:20
ChannelSplitterNode* node = create()
Raymond Toy
2016/09/13 15:44:57
Done.
|
+ |
+ if (!node) |
+ return nullptr; |
+ |
+ node->handleChannelOptions(options, exceptionState); |
+ |
+ return node; |
+} |
+ |
} // namespace blink |