| 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 36287ff52d8591ab93103fd18954a6e19c84f659..11d5715fdc831b45ca427e2011b85a8feac8e4d3 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.
|
|
|