Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(40)

Unified Diff: third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp

Issue 2134813002: Implement ConstantSourceNode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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) {

Powered by Google App Engine
This is Rietveld 408576698