OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010, Google Inc. All rights reserved. | 2 * Copyright (C) 2010, Google Inc. All rights reserved. |
3 * Copyright (C) 2011 Apple Inc. All rights reserved. | 3 * Copyright (C) 2011 Apple Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 16 matching lines...) Expand all Loading... |
27 "suspended", | 27 "suspended", |
28 "running", | 28 "running", |
29 "closed" | 29 "closed" |
30 }; | 30 }; |
31 | 31 |
32 [ | 32 [ |
33 ActiveScriptWrappable, | 33 ActiveScriptWrappable, |
34 Constructor, | 34 Constructor, |
35 ConstructorCallWith=Document, | 35 ConstructorCallWith=Document, |
36 DependentLifetime, | 36 DependentLifetime, |
37 GarbageCollected, | |
38 ImplementedAs=AbstractAudioContext, | 37 ImplementedAs=AbstractAudioContext, |
39 NoInterfaceObject, | 38 NoInterfaceObject, |
40 RaisesException=Constructor, | 39 RaisesException=Constructor, |
41 ] interface AudioContext : EventTarget { | 40 ] interface AudioContext : EventTarget { |
42 // All rendered audio ultimately connects to destination, which represents t
he audio hardware. | 41 // All rendered audio ultimately connects to destination, which represents t
he audio hardware. |
43 readonly attribute AudioDestinationNode destination; | 42 readonly attribute AudioDestinationNode destination; |
44 | 43 |
45 // All scheduled times are relative to this time in seconds. | 44 // All scheduled times are relative to this time in seconds. |
46 readonly attribute double currentTime; | 45 readonly attribute double currentTime; |
47 | 46 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 | 87 |
89 // Close | 88 // Close |
90 [MeasureAs=AudioContextClose, CallWith=ScriptState, ImplementedAs=closeConte
xt] Promise<void> close(); | 89 [MeasureAs=AudioContextClose, CallWith=ScriptState, ImplementedAs=closeConte
xt] Promise<void> close(); |
91 | 90 |
92 // Pause/resume | 91 // Pause/resume |
93 [MeasureAs=AudioContextSuspend, CallWith=ScriptState, ImplementedAs=suspendC
ontext] Promise<void> suspend(); | 92 [MeasureAs=AudioContextSuspend, CallWith=ScriptState, ImplementedAs=suspendC
ontext] Promise<void> suspend(); |
94 [MeasureAs=AudioContextResume, CallWith=ScriptState, ImplementedAs=resumeCon
text] Promise<void> resume(); | 93 [MeasureAs=AudioContextResume, CallWith=ScriptState, ImplementedAs=resumeCon
text] Promise<void> resume(); |
95 | 94 |
96 attribute EventHandler onstatechange; | 95 attribute EventHandler onstatechange; |
97 }; | 96 }; |
OLD | NEW |