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 7e762a85f0688889eae8f85e3189f67f2ceba70a..58cf2ee86f817d900e25f0fa37a7f3abaf1a71df 100644 |
--- a/third_party/WebKit/Source/modules/webaudio/PannerNode.cpp |
+++ b/third_party/WebKit/Source/modules/webaudio/PannerNode.cpp |
@@ -238,7 +238,7 @@ void PannerHandler::initialize() { |
if (isInitialized()) |
return; |
- m_panner = Panner::create(m_panningModel, sampleRate(), |
+ m_panner = Panner::create(m_panningModel, context()->sampleRate(), |
listener()->hrtfDatabaseLoader()); |
listener()->addPanner(*this); |
@@ -304,8 +304,8 @@ bool PannerHandler::setPanningModel(unsigned model) { |
if (!m_panner.get() || model != m_panningModel) { |
// This synchronizes with process(). |
MutexLocker processLocker(m_processLock); |
- m_panner = |
- Panner::create(model, sampleRate(), listener()->hrtfDatabaseLoader()); |
+ m_panner = Panner::create(model, context()->sampleRate(), |
+ listener()->hrtfDatabaseLoader()); |
m_panningModel = model; |
} |
return true; |