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

Unified Diff: third_party/WebKit/Source/modules/webaudio/PannerNode.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/PannerNode.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/PannerNode.cpp b/third_party/WebKit/Source/modules/webaudio/PannerNode.cpp
index ad21f7a0e81952fb79e562246e2ed20cc169aa67..507a862d9c8ea01b8314269ae75313cd1e7396c3 100644
--- a/third_party/WebKit/Source/modules/webaudio/PannerNode.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/PannerNode.cpp
@@ -27,10 +27,10 @@
#include "bindings/core/v8/ExceptionState.h"
#include "core/dom/ExceptionCode.h"
#include "core/dom/ExecutionContext.h"
-#include "modules/webaudio/AbstractAudioContext.h"
#include "modules/webaudio/AudioBufferSourceNode.h"
#include "modules/webaudio/AudioNodeInput.h"
#include "modules/webaudio/AudioNodeOutput.h"
+#include "modules/webaudio/BaseAudioContext.h"
#include "platform/audio/HRTFPanner.h"
#include "wtf/MathExtras.h"
@@ -104,7 +104,7 @@ void PannerHandler::process(size_t framesToProcess)
// HRTFDatabase should be loaded before proceeding when the panning model is HRTF.
if (m_panningModel == Panner::PanningModelHRTF && !listener()->isHRTFDatabaseLoaded()) {
if (context()->hasRealtimeConstraint()) {
- // Some AbstractAudioContexts cannot block on the HRTFDatabase loader.
+ // Some BaseAudioContexts cannot block on the HRTFDatabase loader.
destination->zero();
return;
}
@@ -444,7 +444,7 @@ void PannerHandler::markPannerAsDirty(unsigned dirty)
void PannerHandler::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) {
@@ -469,7 +469,7 @@ void PannerHandler::setChannelCount(unsigned long channelCount, ExceptionState&
void PannerHandler::setChannelCountMode(const String& mode, ExceptionState& exceptionState)
{
ASSERT(isMainThread());
- AbstractAudioContext::AutoLocker locker(context());
+ BaseAudioContext::AutoLocker locker(context());
ChannelCountMode oldMode = m_channelCountMode;
@@ -494,13 +494,13 @@ void PannerHandler::setChannelCountMode(const String& mode, ExceptionState& exce
// ----------------------------------------------------------------
-PannerNode::PannerNode(AbstractAudioContext& context, float sampelRate)
+PannerNode::PannerNode(BaseAudioContext& context, float sampelRate)
: AudioNode(context)
{
setHandler(PannerHandler::create(*this, sampelRate));
}
-PannerNode* PannerNode::create(AbstractAudioContext& context, float sampleRate)
+PannerNode* PannerNode::create(BaseAudioContext& context, float sampleRate)
{
return new PannerNode(context, sampleRate);
}

Powered by Google App Engine
This is Rietveld 408576698