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 4826d3d94a1882b634c2de9b62f0dfd474813094..9e131466ddaa9fc2cefa84ec0accfa4ad5b357c1 100644 |
--- a/third_party/WebKit/Source/modules/webaudio/AudioBufferSourceNode.cpp |
+++ b/third_party/WebKit/Source/modules/webaudio/AudioBufferSourceNode.cpp |
@@ -561,7 +561,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 |