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

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

Issue 2501863003: Support for AudioContextOptions latencyHint. (Closed)
Patch Set: Updates based on reviewer comments. Created 4 years 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/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

Powered by Google App Engine
This is Rietveld 408576698