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

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

Issue 1865583002: Implement BaseAudioContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/StereoPannerNode.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/StereoPannerNode.cpp b/third_party/WebKit/Source/modules/webaudio/StereoPannerNode.cpp
index 0692d9f896475035d7d5b54864c17d3c6d16e8da..20ebbbb1d0a1b3097896131b00a27350ef2df6e9 100644
--- a/third_party/WebKit/Source/modules/webaudio/StereoPannerNode.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/StereoPannerNode.cpp
@@ -7,9 +7,9 @@
#include "bindings/core/v8/ExceptionState.h"
#include "core/dom/ExceptionCode.h"
#include "core/dom/ExecutionContext.h"
-#include "modules/webaudio/AbstractAudioContext.h"
#include "modules/webaudio/AudioNodeInput.h"
#include "modules/webaudio/AudioNodeOutput.h"
+#include "modules/webaudio/BaseAudioContext.h"
#include "platform/audio/StereoPanner.h"
#include "wtf/MathExtras.h"
@@ -83,7 +83,7 @@ void StereoPannerHandler::initialize()
void StereoPannerHandler::setChannelCount(unsigned long channelCount, ExceptionState& exceptionState)
{
ASSERT(isMainThread());
- AbstractAudioContext::AutoLocker locker(context());
+ BaseAudioContext::AutoLocker locker(context());
// A PannerNode only supports 1 or 2 channels
if (channelCount > 0 && channelCount <= 2) {
@@ -108,7 +108,7 @@ void StereoPannerHandler::setChannelCount(unsigned long channelCount, ExceptionS
void StereoPannerHandler::setChannelCountMode(const String& mode, ExceptionState& exceptionState)
{
ASSERT(isMainThread());
- AbstractAudioContext::AutoLocker locker(context());
+ BaseAudioContext::AutoLocker locker(context());
ChannelCountMode oldMode = m_channelCountMode;
@@ -134,14 +134,14 @@ void StereoPannerHandler::setChannelCountMode(const String& mode, ExceptionState
// ----------------------------------------------------------------
-StereoPannerNode::StereoPannerNode(AbstractAudioContext& context, float sampleRate)
+StereoPannerNode::StereoPannerNode(BaseAudioContext& context, float sampleRate)
: AudioNode(context)
, m_pan(AudioParam::create(context, 0))
{
setHandler(StereoPannerHandler::create(*this, sampleRate, m_pan->handler()));
}
-StereoPannerNode* StereoPannerNode::create(AbstractAudioContext& context, float sampleRate)
+StereoPannerNode* StereoPannerNode::create(BaseAudioContext& context, float sampleRate)
{
return new StereoPannerNode(context, sampleRate);
}

Powered by Google App Engine
This is Rietveld 408576698