Chromium Code Reviews| 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..00887c2384356470aa73f8f22310e6be0bd54e3e 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, |
| @@ -36,6 +42,9 @@ |
| [MeasureAs=AudioContextSuspend, CallWith=ScriptState, ImplementedAs=suspendContext] Promise<void> suspend(); |
| [MeasureAs=AudioContextClose, CallWith=ScriptState, ImplementedAs=closeContext] Promise<void> close(); |
| + // Number of seconds of processing latency incurred by the AudioContext passing the audio from the AudioDestinationNode to the audio subsystem |
|
hongchan
2016/12/02 17:40:12
nit: please wrap the comment by 80 cols.
Andrew MacPherson
2016/12/05 14:12:53
Done.
|
| + readonly attribute double baseLatency; |
| + |
| // Sources |
| // TODO(rtoy): The following methods should be here instead of in BaseAudioContext: |
| // |