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

Unified Diff: Source/modules/webaudio/StereoPannerNode.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/StereoPannerNode.h ('k') | Source/modules/webaudio/StereoPannerNodeTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webaudio/StereoPannerNode.cpp
diff --git a/Source/modules/webaudio/StereoPannerNode.cpp b/Source/modules/webaudio/StereoPannerNode.cpp
index d160e37af5e1c63639d2338e5e76cf612a451207..e22b5b9938b6cf0df7986b75e3437f1fccfbe655 100644
--- a/Source/modules/webaudio/StereoPannerNode.cpp
+++ b/Source/modules/webaudio/StereoPannerNode.cpp
@@ -10,7 +10,7 @@
#include "bindings/core/v8/ExceptionState.h"
#include "core/dom/ExceptionCode.h"
#include "core/dom/ExecutionContext.h"
-#include "modules/webaudio/AudioContext.h"
+#include "modules/webaudio/AbstractAudioContext.h"
#include "modules/webaudio/AudioNodeInput.h"
#include "modules/webaudio/AudioNodeOutput.h"
#include "platform/audio/StereoPanner.h"
@@ -86,7 +86,7 @@ void StereoPannerHandler::initialize()
void StereoPannerHandler::setChannelCount(unsigned long channelCount, ExceptionState& exceptionState)
{
ASSERT(isMainThread());
- AudioContext::AutoLocker locker(context());
+ AbstractAudioContext::AutoLocker locker(context());
// A PannerNode only supports 1 or 2 channels
if (channelCount > 0 && channelCount <= 2) {
@@ -111,7 +111,7 @@ void StereoPannerHandler::setChannelCount(unsigned long channelCount, ExceptionS
void StereoPannerHandler::setChannelCountMode(const String& mode, ExceptionState& exceptionState)
{
ASSERT(isMainThread());
- AudioContext::AutoLocker locker(context());
+ AbstractAudioContext::AutoLocker locker(context());
ChannelCountMode oldMode = m_channelCountMode;
@@ -137,14 +137,14 @@ void StereoPannerHandler::setChannelCountMode(const String& mode, ExceptionState
// ----------------------------------------------------------------
-StereoPannerNode::StereoPannerNode(AudioContext& context, float sampleRate)
+StereoPannerNode::StereoPannerNode(AbstractAudioContext& context, float sampleRate)
: AudioNode(context)
, m_pan(AudioParam::create(context, 0))
{
setHandler(StereoPannerHandler::create(*this, sampleRate, m_pan->handler()));
}
-StereoPannerNode* StereoPannerNode::create(AudioContext& context, float sampleRate)
+StereoPannerNode* StereoPannerNode::create(AbstractAudioContext& context, float sampleRate)
{
return new StereoPannerNode(context, sampleRate);
}
« no previous file with comments | « Source/modules/webaudio/StereoPannerNode.h ('k') | Source/modules/webaudio/StereoPannerNodeTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698