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

Unified Diff: third_party/WebKit/Source/modules/webaudio/ConvolverNode.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/ConvolverNode.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/ConvolverNode.cpp b/third_party/WebKit/Source/modules/webaudio/ConvolverNode.cpp
index 9ba78ffee90a155af10cc39bc58cdf3e60eb0a15..ca23bcfe9784dbffa7c003c9944e82e448bfab8c 100644
--- a/third_party/WebKit/Source/modules/webaudio/ConvolverNode.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/ConvolverNode.cpp
@@ -158,7 +158,7 @@ double ConvolverHandler::tailTime() const {
if (tryLocker.locked())
return m_reverb
? m_reverb->impulseResponseLength() /
- static_cast<double>(sampleRate())
+ static_cast<double>(context()->sampleRate())
: 0;
// Since we don't want to block the Audio Device thread, we return a large
// value instead of trying to acquire the lock.
@@ -169,7 +169,8 @@ double ConvolverHandler::latencyTime() const {
MutexTryLocker tryLocker(m_processLock);
if (tryLocker.locked())
return m_reverb
- ? m_reverb->latencyFrames() / static_cast<double>(sampleRate())
+ ? m_reverb->latencyFrames() /
+ static_cast<double>(context()->sampleRate())
: 0;
// Since we don't want to block the Audio Device thread, we return a large
// value instead of trying to acquire the lock.

Powered by Google App Engine
This is Rietveld 408576698