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

Unified Diff: third_party/WebKit/Source/modules/webaudio/AudioScheduledSourceNode.h

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/AudioScheduledSourceNode.h
diff --git a/third_party/WebKit/Source/modules/webaudio/AudioScheduledSourceNode.h b/third_party/WebKit/Source/modules/webaudio/AudioScheduledSourceNode.h
index f56919f4a6d42a5d0629ed22206123698771a813..f410ad2f767660752f41ab29baa0f5a2592a052b 100644
--- a/third_party/WebKit/Source/modules/webaudio/AudioScheduledSourceNode.h
+++ b/third_party/WebKit/Source/modules/webaudio/AudioScheduledSourceNode.h
@@ -88,10 +88,15 @@ class AudioScheduledSourceHandler : public AudioHandler {
// rendering.
// nonSilentFramesToProcess : Number of frames rendering non-silence (will be
// <= quantumFrameSize).
+ // startFrameOffset : The fractional frame offset from quantumFrameOffset
+ // and the actual starting time of the source. This is
+ // non-zero only when transitioning from the
+ // SCHEDULED_STATE to the PLAYING_STATE.
void updateSchedulingInfo(size_t quantumFrameSize,
AudioBus* outputBus,
size_t& quantumFrameOffset,
- size_t& nonSilentFramesToProcess);
+ size_t& nonSilentFramesToProcess,
+ double& startFrameOffset);
// Called when we have no more sound to play or the stop() time has been
// reached. No onEnded event is called.

Powered by Google App Engine
This is Rietveld 408576698