Index: third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp |
diff --git a/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp b/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp |
index 900ff22c283d102ac3df0e3c25c321ab9442c380..a83ad8a0042c242a50b3ac384087e1e05eb993c2 100644 |
--- a/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp |
+++ b/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp |
@@ -50,6 +50,7 @@ |
#include "modules/webaudio/BiquadFilterNode.h" |
#include "modules/webaudio/ChannelMergerNode.h" |
#include "modules/webaudio/ChannelSplitterNode.h" |
+#include "modules/webaudio/ConstantSourceNode.h" |
#include "modules/webaudio/ConvolverNode.h" |
#include "modules/webaudio/DefaultAudioDestinationNode.h" |
#include "modules/webaudio/DelayNode.h" |
@@ -328,6 +329,13 @@ AudioBufferSourceNode* BaseAudioContext::createBufferSource( |
return node; |
} |
+ConstantSourceNode* BaseAudioContext::createConstantSource( |
+ ExceptionState& exceptionState) { |
+ DCHECK(isMainThread()); |
+ |
+ return ConstantSourceNode::create(*this, exceptionState); |
+} |
+ |
MediaElementAudioSourceNode* BaseAudioContext::createMediaElementSource( |
HTMLMediaElement* mediaElement, |
ExceptionState& exceptionState) { |