Index: third_party/WebKit/Source/modules/webaudio/AudioBufferSourceNode.cpp |
diff --git a/third_party/WebKit/Source/modules/webaudio/AudioBufferSourceNode.cpp b/third_party/WebKit/Source/modules/webaudio/AudioBufferSourceNode.cpp |
index b2e57bd8cec438daa58e75502a281fdfcc8c45a4..226288bfe6bd6933253b96a1a5f9dc0818cfc615 100644 |
--- a/third_party/WebKit/Source/modules/webaudio/AudioBufferSourceNode.cpp |
+++ b/third_party/WebKit/Source/modules/webaudio/AudioBufferSourceNode.cpp |
@@ -562,7 +562,7 @@ double AudioBufferSourceHandler::computePlaybackRate() { |
if (buffer()) { |
// Use doubles to compute this to full accuracy. |
sampleRateFactor = |
- buffer()->sampleRate() / static_cast<double>(sampleRate()); |
+ buffer()->sampleRate() / static_cast<double>(context()->sampleRate()); |
} |
// Use finalValue() to incorporate changes of AudioParamTimeline and |