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

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

Issue 2060833002: Implementation of 'AudioContext.getOutputTimestamp' method (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added implementation for ALSA. Created 4 years, 5 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/AudioContext.h
diff --git a/third_party/WebKit/Source/modules/webaudio/AudioContext.h b/third_party/WebKit/Source/modules/webaudio/AudioContext.h
index 33fc76846465ca12358d317e195b07e4ee893b85..45bbb6780bbc04eef14b8d2e93d255eb2e0c92d0 100644
--- a/third_party/WebKit/Source/modules/webaudio/AudioContext.h
+++ b/third_party/WebKit/Source/modules/webaudio/AudioContext.h
@@ -33,6 +33,8 @@ public:
bool hasRealtimeConstraint() final { return true; }
+ void getOutputTimestamp(AudioTimestamp&) final;
+
protected:
AudioContext(Document&);
@@ -43,6 +45,7 @@ private:
unsigned m_contextId;
Member<ScriptPromiseResolver> m_closeResolver;
+ size_t m_outputTimestampFramesOrigin; // Set after every supend/resume.
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698