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 10 matching lines...) Expand all Loading... |
21 * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 21 * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
23 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
24 */ | 24 */ |
25 | 25 |
26 [ | 26 [ |
27 Conditional=WEB_AUDIO, | 27 Conditional=WEB_AUDIO, |
28 ActiveDOMObject, | 28 ActiveDOMObject, |
29 CustomConstructor, | 29 CustomConstructor, |
30 ConstructorParameters=0, | 30 ConstructorParameters=0, |
31 JSCustomMarkFunction, | |
32 EventTarget | 31 EventTarget |
33 ] interface AudioContext { | 32 ] interface AudioContext { |
34 // All rendered audio ultimately connects to destination, which represents t
he audio hardware. | 33 // All rendered audio ultimately connects to destination, which represents t
he audio hardware. |
35 readonly attribute AudioDestinationNode destination; | 34 readonly attribute AudioDestinationNode destination; |
36 | 35 |
37 // All scheduled times are relative to this time in seconds. | 36 // All scheduled times are relative to this time in seconds. |
38 readonly attribute float currentTime; | 37 readonly attribute float currentTime; |
39 | 38 |
40 // All AudioNodes in the context run at this sample-rate (in sample-frames p
er second). | 39 // All AudioNodes in the context run at this sample-rate (in sample-frames p
er second). |
41 readonly attribute float sampleRate; | 40 readonly attribute float sampleRate; |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 #if defined(ENABLE_LEGACY_WEB_AUDIO) && ENABLE_LEGACY_WEB_AUDIO | 97 #if defined(ENABLE_LEGACY_WEB_AUDIO) && ENABLE_LEGACY_WEB_AUDIO |
99 [V8MeasureAs=LegacyWebAudio, ImplementedAs=createGain] GainNode createGainNo
de(); | 98 [V8MeasureAs=LegacyWebAudio, ImplementedAs=createGain] GainNode createGainNo
de(); |
100 [V8MeasureAs=LegacyWebAudio, ImplementedAs=createDelay] DelayNode createDela
yNode(in [Optional] double maxDelayTime) | 99 [V8MeasureAs=LegacyWebAudio, ImplementedAs=createDelay] DelayNode createDela
yNode(in [Optional] double maxDelayTime) |
101 raises(DOMException); | 100 raises(DOMException); |
102 | 101 |
103 [V8MeasureAs=LegacyWebAudio, ImplementedAs=createScriptProcessor] ScriptProc
essorNode createJavaScriptNode(in unsigned long bufferSize, in [Optional] unsign
ed long numberOfInputChannels, in [Optional] unsigned long numberOfOutputChannel
s) | 102 [V8MeasureAs=LegacyWebAudio, ImplementedAs=createScriptProcessor] ScriptProc
essorNode createJavaScriptNode(in unsigned long bufferSize, in [Optional] unsign
ed long numberOfInputChannels, in [Optional] unsigned long numberOfOutputChannel
s) |
104 raises(DOMException); | 103 raises(DOMException); |
105 #endif | 104 #endif |
106 | 105 |
107 }; | 106 }; |
OLD | NEW |