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 19 matching lines...) Expand all Loading... |
30 }; | 30 }; |
31 | 31 |
32 [ | 32 [ |
33 GarbageCollected, | 33 GarbageCollected, |
34 ActiveDOMObject, | 34 ActiveDOMObject, |
35 Conditional=WEB_AUDIO, | 35 Conditional=WEB_AUDIO, |
36 Constructor, | 36 Constructor, |
37 ConstructorCallWith=Document, | 37 ConstructorCallWith=Document, |
38 NoInterfaceObject, | 38 NoInterfaceObject, |
39 RaisesException=Constructor, | 39 RaisesException=Constructor, |
| 40 TypeChecking=Unrestricted, |
40 ] interface AudioContext : EventTarget { | 41 ] interface AudioContext : EventTarget { |
41 // All rendered audio ultimately connects to destination, which represents t
he audio hardware. | 42 // All rendered audio ultimately connects to destination, which represents t
he audio hardware. |
42 readonly attribute AudioDestinationNode destination; | 43 readonly attribute AudioDestinationNode destination; |
43 | 44 |
44 // All scheduled times are relative to this time in seconds. | 45 // All scheduled times are relative to this time in seconds. |
45 readonly attribute double currentTime; | 46 readonly attribute double currentTime; |
46 | 47 |
47 // All AudioNodes in the context run at this sample-rate (sample-frames per
second). | 48 // All AudioNodes in the context run at this sample-rate (sample-frames per
second). |
48 readonly attribute float sampleRate; | 49 readonly attribute float sampleRate; |
49 | 50 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 | 87 |
87 // Close | 88 // Close |
88 [MeasureAs=AudioContextClose, CallWith=ScriptState, ImplementedAs=closeConte
xt] Promise close(); | 89 [MeasureAs=AudioContextClose, CallWith=ScriptState, ImplementedAs=closeConte
xt] Promise close(); |
89 | 90 |
90 // Pause/resume | 91 // Pause/resume |
91 [MeasureAs=AudioContextSuspend, CallWith=ScriptState, ImplementedAs=suspendC
ontext] Promise suspend(); | 92 [MeasureAs=AudioContextSuspend, CallWith=ScriptState, ImplementedAs=suspendC
ontext] Promise suspend(); |
92 [MeasureAs=AudioContextResume, CallWith=ScriptState, ImplementedAs=resumeCon
text] Promise resume(); | 93 [MeasureAs=AudioContextResume, CallWith=ScriptState, ImplementedAs=resumeCon
text] Promise resume(); |
93 | 94 |
94 attribute EventHandler onstatechange; | 95 attribute EventHandler onstatechange; |
95 }; | 96 }; |
OLD | NEW |