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

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

Issue 2501863003: Support for AudioContextOptions latencyHint. (Closed)
Patch Set: Add baseLatency and fix use of hardwareSampleRate. Created 4 years, 1 month 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.idl
diff --git a/third_party/WebKit/Source/modules/webaudio/AudioContext.idl b/third_party/WebKit/Source/modules/webaudio/AudioContext.idl
index 00ddd911b6bc85416ae3101dc8f41580892810cf..bbc74f3ab2a67a0fd10c26ff8038b60fe7721cf3 100644
--- a/third_party/WebKit/Source/modules/webaudio/AudioContext.idl
+++ b/third_party/WebKit/Source/modules/webaudio/AudioContext.idl
@@ -24,10 +24,16 @@
* DAMAGE.
*/
+enum AudioContextLatencyCategory {
+ "balanced",
+ "interactive",
+ "playback"
+};
+
// See https://webaudio.github.io/web-audio-api/#AudioContext
[
ActiveScriptWrappable,
- Constructor,
+ Constructor(optional AudioContextOptions contextOptions),
ConstructorCallWith=Document,
DependentLifetime,
NoInterfaceObject,

Powered by Google App Engine
This is Rietveld 408576698