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

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

Issue 2501863003: Support for AudioContextOptions latencyHint. (Closed)
Patch Set: Fixes to WebAudioDeviceImpl unit test. Created 3 years, 10 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 2e5b6fecb0dd97e93e4cb13d5ad1b54cce93adfc..a4914d7e433a7e0e857564805bf933e172822483 100644
--- a/third_party/WebKit/Source/modules/webaudio/PannerNode.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/PannerNode.cpp
@@ -252,7 +252,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);
@@ -318,8 +318,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;

Powered by Google App Engine
This is Rietveld 408576698