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

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

Issue 2501863003: Support for AudioContextOptions latencyHint. (Closed)
Patch Set: Add baseLatency and fix use of hardwareSampleRate. Created 4 years, 1 month 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 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;

Powered by Google App Engine
This is Rietveld 408576698