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

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

Issue 2186813003: Sub-sample accurate start of OscillatorNode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adjust thresholds for Mac 10.11 (retina) Created 3 years, 11 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/ConstantSourceNode.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/ConstantSourceNode.cpp b/third_party/WebKit/Source/modules/webaudio/ConstantSourceNode.cpp
index 821419d0125c9f07afd506125e19d310c054946f..ce68569c9d7b66654933c5040fa36f25b6b4bab5 100644
--- a/third_party/WebKit/Source/modules/webaudio/ConstantSourceNode.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/ConstantSourceNode.cpp
@@ -58,11 +58,12 @@ void ConstantSourceHandler::process(size_t framesToProcess) {
size_t quantumFrameOffset;
size_t nonSilentFramesToProcess;
+ double startFrameOffset;
// Figure out where in the current rendering quantum that the source is
// active and for how many frames.
updateSchedulingInfo(framesToProcess, outputBus, quantumFrameOffset,
- nonSilentFramesToProcess);
+ nonSilentFramesToProcess, startFrameOffset);
if (!nonSilentFramesToProcess) {
outputBus->zero();

Powered by Google App Engine
This is Rietveld 408576698