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

Unified Diff: Source/modules/webaudio/ChannelSplitterNode.cpp

Issue 1214463003: Split "Online" and "Offline" AudioContext processing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Bring to ToT Created 5 years, 5 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
« no previous file with comments | « Source/modules/webaudio/ChannelSplitterNode.h ('k') | Source/modules/webaudio/ConvolverNode.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webaudio/ChannelSplitterNode.cpp
diff --git a/Source/modules/webaudio/ChannelSplitterNode.cpp b/Source/modules/webaudio/ChannelSplitterNode.cpp
index 93f47af744839d0bb06c464820e99b7ec10bd81f..93af0d5929e2c0db1cc74232e3d567666c36c6c9 100644
--- a/Source/modules/webaudio/ChannelSplitterNode.cpp
+++ b/Source/modules/webaudio/ChannelSplitterNode.cpp
@@ -26,7 +26,7 @@
#if ENABLE(WEB_AUDIO)
#include "modules/webaudio/ChannelSplitterNode.h"
-#include "modules/webaudio/AudioContext.h"
+#include "modules/webaudio/AbstractAudioContext.h"
#include "modules/webaudio/AudioNodeInput.h"
#include "modules/webaudio/AudioNodeOutput.h"
@@ -74,15 +74,15 @@ void ChannelSplitterHandler::process(size_t framesToProcess)
// ----------------------------------------------------------------
-ChannelSplitterNode::ChannelSplitterNode(AudioContext& context, float sampleRate, unsigned numberOfOutputs)
+ChannelSplitterNode::ChannelSplitterNode(AbstractAudioContext& context, float sampleRate, unsigned numberOfOutputs)
: AudioNode(context)
{
setHandler(ChannelSplitterHandler::create(*this, sampleRate, numberOfOutputs));
}
-ChannelSplitterNode* ChannelSplitterNode::create(AudioContext& context, float sampleRate, unsigned numberOfOutputs)
+ChannelSplitterNode* ChannelSplitterNode::create(AbstractAudioContext& context, float sampleRate, unsigned numberOfOutputs)
{
- if (!numberOfOutputs || numberOfOutputs > AudioContext::maxNumberOfChannels())
+ if (!numberOfOutputs || numberOfOutputs > AbstractAudioContext::maxNumberOfChannels())
return nullptr;
return new ChannelSplitterNode(context, sampleRate, numberOfOutputs);
}
« no previous file with comments | « Source/modules/webaudio/ChannelSplitterNode.h ('k') | Source/modules/webaudio/ConvolverNode.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698