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

Unified Diff: third_party/WebKit/public/platform/WebAudioDevice.h

Issue 2060833002: Implementation of 'AudioContext.getOutputTimestamp' method (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased 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
« no previous file with comments | « third_party/WebKit/Source/platform/exported/WebAudioDevice.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/platform/WebAudioDevice.h
diff --git a/third_party/WebKit/public/platform/WebAudioDevice.h b/third_party/WebKit/public/platform/WebAudioDevice.h
index 6680cfb0d6eec2b0bb59a0039cce016eef957879..1de0eba2a8153776058b86eec276cd70e4cd6392 100644
--- a/third_party/WebKit/public/platform/WebAudioDevice.h
+++ b/third_party/WebKit/public/platform/WebAudioDevice.h
@@ -35,14 +35,21 @@
namespace blink {
// Abstract interface to the Chromium audio system.
-
class WebAudioDevice {
public:
class BLINK_PLATFORM_EXPORT RenderCallback {
public:
+ // Note: |delay| and |delayTimestamp| arguments are high-precision
+ // measurements of the state of the system in the recent past. To be clear,
+ // |delay| does *not* represent the point-in-time at which the first
+ // rendered sample will be played out.
virtual void render(const WebVector<float*>& sourceData,
const WebVector<float*>& destinationData,
- size_t numberOfFrames);
+ size_t numberOfFrames,
+ double delay, // Output delay in seconds.
+ double delayTimestamp, // System timestamp in seconds
+ // when |delay| was obtained.
+ size_t priorFramesSkipped);
protected:
virtual ~RenderCallback();
« no previous file with comments | « third_party/WebKit/Source/platform/exported/WebAudioDevice.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698