OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // WebAudio spec: https://webaudio.github.io/web-audio-api/#BaseAudioContext | 5 // See https://webaudio.github.io/web-audio-api/#BaseAudioContext |
6 enum AudioContextState { | 6 enum AudioContextState { |
7 "suspended", | 7 "suspended", |
8 "running", | 8 "running", |
9 "closed" | 9 "closed" |
10 }; | 10 }; |
11 | 11 |
12 [ | 12 [ |
13 ActiveScriptWrappable, | 13 ActiveScriptWrappable, |
14 DependentLifetime, | 14 DependentLifetime, |
15 NoInterfaceObject, | 15 NoInterfaceObject, |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 [MeasureAs=AudioContextResume, CallWith=ScriptState, ImplementedAs=resumeCon
text] Promise<void> resume(); | 64 [MeasureAs=AudioContextResume, CallWith=ScriptState, ImplementedAs=resumeCon
text] Promise<void> resume(); |
65 | 65 |
66 // TODO(rtoy): These really belong to the AudioContext, but we need them | 66 // TODO(rtoy): These really belong to the AudioContext, but we need them |
67 // here so we can use an offline audio context to test these. | 67 // here so we can use an offline audio context to test these. |
68 [RaisesException, MeasureAs=AudioContextCreateMediaElementSource] MediaEleme
ntAudioSourceNode createMediaElementSource(HTMLMediaElement mediaElement); | 68 [RaisesException, MeasureAs=AudioContextCreateMediaElementSource] MediaEleme
ntAudioSourceNode createMediaElementSource(HTMLMediaElement mediaElement); |
69 [RaisesException, MeasureAs=AudioContextCreateMediaStreamSource] MediaStream
AudioSourceNode createMediaStreamSource(MediaStream mediaStream); | 69 [RaisesException, MeasureAs=AudioContextCreateMediaStreamSource] MediaStream
AudioSourceNode createMediaStreamSource(MediaStream mediaStream); |
70 [RaisesException, MeasureAs=AudioContextCreateMediaStreamDestination] MediaS
treamAudioDestinationNode createMediaStreamDestination(); | 70 [RaisesException, MeasureAs=AudioContextCreateMediaStreamDestination] MediaS
treamAudioDestinationNode createMediaStreamDestination(); |
71 | 71 |
72 attribute EventHandler onstatechange; | 72 attribute EventHandler onstatechange; |
73 }; | 73 }; |
OLD | NEW |