@webref/idl 3.28.0 → 3.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (291) hide show
  1. package/package.json +1 -1
  2. package/ANGLE_instanced_arrays.idl +0 -12
  3. package/CSP.idl +0 -56
  4. package/DOM-Parsing.idl +0 -26
  5. package/EXT_blend_minmax.idl +0 -10
  6. package/EXT_color_buffer_float.idl +0 -8
  7. package/EXT_color_buffer_half_float.idl +0 -12
  8. package/EXT_disjoint_timer_query.idl +0 -30
  9. package/EXT_disjoint_timer_query_webgl2.idl +0 -14
  10. package/EXT_float_blend.idl +0 -8
  11. package/EXT_frag_depth.idl +0 -8
  12. package/EXT_sRGB.idl +0 -12
  13. package/EXT_shader_texture_lod.idl +0 -8
  14. package/EXT_texture_compression_bptc.idl +0 -12
  15. package/EXT_texture_compression_rgtc.idl +0 -12
  16. package/EXT_texture_filter_anisotropic.idl +0 -10
  17. package/EXT_texture_norm16.idl +0 -16
  18. package/FedCM.idl +0 -67
  19. package/FileAPI.idl +0 -100
  20. package/IndexedDB.idl +0 -226
  21. package/KHR_parallel_shader_compile.idl +0 -9
  22. package/OES_draw_buffers_indexed.idl +0 -26
  23. package/OES_element_index_uint.idl +0 -8
  24. package/OES_fbo_render_mipmap.idl +0 -8
  25. package/OES_standard_derivatives.idl +0 -9
  26. package/OES_texture_float.idl +0 -7
  27. package/OES_texture_float_linear.idl +0 -7
  28. package/OES_texture_half_float.idl +0 -9
  29. package/OES_texture_half_float_linear.idl +0 -7
  30. package/OES_vertex_array_object.idl +0 -18
  31. package/OVR_multiview2.idl +0 -14
  32. package/SVG.idl +0 -693
  33. package/WEBGL_blend_equation_advanced_coherent.idl +0 -23
  34. package/WEBGL_clip_cull_distance.idl +0 -20
  35. package/WEBGL_color_buffer_float.idl +0 -11
  36. package/WEBGL_compressed_texture_astc.idl +0 -41
  37. package/WEBGL_compressed_texture_etc.idl +0 -19
  38. package/WEBGL_compressed_texture_etc1.idl +0 -10
  39. package/WEBGL_compressed_texture_pvrtc.idl +0 -13
  40. package/WEBGL_compressed_texture_s3tc.idl +0 -13
  41. package/WEBGL_compressed_texture_s3tc_srgb.idl +0 -13
  42. package/WEBGL_debug_renderer_info.idl +0 -12
  43. package/WEBGL_debug_shaders.idl +0 -11
  44. package/WEBGL_depth_texture.idl +0 -9
  45. package/WEBGL_draw_buffers.idl +0 -46
  46. package/WEBGL_draw_instanced_base_vertex_base_instance.idl +0 -14
  47. package/WEBGL_lose_context.idl +0 -10
  48. package/WEBGL_multi_draw.idl +0 -32
  49. package/WEBGL_multi_draw_instanced_base_vertex_base_instance.idl +0 -26
  50. package/WEBGL_provoking_vertex.idl +0 -13
  51. package/WebCryptoAPI.idl +0 -237
  52. package/accelerometer.idl +0 -40
  53. package/ambient-light.idl +0 -14
  54. package/anchors.idl +0 -35
  55. package/attribution-reporting-api.idl +0 -12
  56. package/audio-output.idl +0 -17
  57. package/autoplay-detection.idl +0 -19
  58. package/background-fetch.idl +0 -89
  59. package/background-sync.idl +0 -30
  60. package/badging.idl +0 -19
  61. package/battery-status.idl +0 -21
  62. package/beacon.idl +0 -8
  63. package/capture-handle-identity.idl +0 -27
  64. package/clipboard-apis.idl +0 -51
  65. package/close-watcher.idl +0 -19
  66. package/compat.idl +0 -13
  67. package/compression.idl +0 -16
  68. package/compute-pressure.idl +0 -40
  69. package/console.idl +0 -34
  70. package/contact-picker.idl +0 -44
  71. package/content-index.idl +0 -46
  72. package/cookie-store.idl +0 -110
  73. package/crash-reporting.idl +0 -10
  74. package/credential-management.idl +0 -105
  75. package/csp-embedded-enforcement.idl +0 -8
  76. package/csp-next.idl +0 -21
  77. package/css-animation-worklet.idl +0 -37
  78. package/css-animations-2.idl +0 -9
  79. package/css-animations.idl +0 -47
  80. package/css-cascade-6.idl +0 -10
  81. package/css-cascade.idl +0 -18
  82. package/css-color-5.idl +0 -12
  83. package/css-conditional.idl +0 -27
  84. package/css-contain-3.idl +0 -10
  85. package/css-contain.idl +0 -13
  86. package/css-counter-styles.idl +0 -23
  87. package/css-font-loading.idl +0 -134
  88. package/css-fonts.idl +0 -36
  89. package/css-highlight-api.idl +0 -27
  90. package/css-images-4.idl +0 -8
  91. package/css-layout-api.idl +0 -144
  92. package/css-masking.idl +0 -20
  93. package/css-nav.idl +0 -48
  94. package/css-nesting.idl +0 -10
  95. package/css-paint-api.idl +0 -39
  96. package/css-parser-api.idl +0 -76
  97. package/css-properties-values-api.idl +0 -23
  98. package/css-pseudo.idl +0 -16
  99. package/css-regions.idl +0 -29
  100. package/css-shadow-parts.idl +0 -8
  101. package/css-transitions-2.idl +0 -9
  102. package/css-transitions.idl +0 -25
  103. package/css-typed-om.idl +0 -423
  104. package/css-view-transitions.idl +0 -18
  105. package/cssom-view.idl +0 -200
  106. package/cssom.idl +0 -159
  107. package/custom-state-pseudo-class.idl +0 -14
  108. package/datacue.idl +0 -12
  109. package/deprecation-reporting.idl +0 -15
  110. package/device-memory.idl +0 -14
  111. package/device-posture.idl +0 -21
  112. package/digital-goods.idl +0 -44
  113. package/dom.idl +0 -645
  114. package/edit-context.idl +0 -113
  115. package/element-timing.idl +0 -22
  116. package/encoding.idl +0 -59
  117. package/encrypted-media.idl +0 -125
  118. package/entries-api.idl +0 -71
  119. package/event-timing.idl +0 -29
  120. package/eyedropper-api.idl +0 -18
  121. package/fenced-frame.idl +0 -49
  122. package/fetch.idl +0 -117
  123. package/fido.idl +0 -47
  124. package/file-system-access.idl +0 -72
  125. package/filter-effects.idl +0 -341
  126. package/font-metrics-api.idl +0 -42
  127. package/fs.idl +0 -97
  128. package/fullscreen.idl +0 -35
  129. package/gamepad-extensions.idl +0 -71
  130. package/gamepad.idl +0 -49
  131. package/generic-sensor.idl +0 -60
  132. package/geolocation-sensor.idl +0 -47
  133. package/geolocation.idl +0 -65
  134. package/geometry.idl +0 -290
  135. package/get-installed-related-apps.idl +0 -16
  136. package/gpc-spec.idl +0 -10
  137. package/gyroscope.idl +0 -24
  138. package/hr-time.idl +0 -19
  139. package/html-media-capture.idl +0 -8
  140. package/html.idl +0 -2716
  141. package/idle-detection.idl +0 -31
  142. package/image-capture.idl +0 -160
  143. package/image-resource.idl +0 -11
  144. package/ink-enhancement.idl +0 -32
  145. package/input-device-capabilities.idl +0 -24
  146. package/input-events.idl +0 -14
  147. package/intersection-observer.idl +0 -46
  148. package/intervention-reporting.idl +0 -14
  149. package/is-input-pending.idl +0 -16
  150. package/js-self-profiling.idl +0 -44
  151. package/keyboard-lock.idl +0 -14
  152. package/keyboard-map.idl +0 -15
  153. package/largest-contentful-paint.idl +0 -15
  154. package/layout-instability.idl +0 -20
  155. package/local-font-access.idl +0 -24
  156. package/longtasks.idl +0 -19
  157. package/magnetometer.idl +0 -46
  158. package/manifest-incubations.idl +0 -24
  159. package/mathml-core.idl +0 -9
  160. package/media-capabilities.idl +0 -115
  161. package/media-playback-quality.idl +0 -18
  162. package/media-source.idl +0 -91
  163. package/mediacapture-automation.idl +0 -36
  164. package/mediacapture-fromelement.idl +0 -17
  165. package/mediacapture-handle-actions.idl +0 -31
  166. package/mediacapture-region.idl +0 -15
  167. package/mediacapture-streams.idl +0 -248
  168. package/mediacapture-transform.idl +0 -23
  169. package/mediacapture-viewport.idl +0 -14
  170. package/mediasession.idl +0 -84
  171. package/mediastream-recording.idl +0 -60
  172. package/model-element.idl +0 -9
  173. package/mst-content-hint.idl +0 -18
  174. package/navigation-timing.idl +0 -71
  175. package/netinfo.idl +0 -43
  176. package/notifications.idl +0 -101
  177. package/orientation-event.idl +0 -82
  178. package/orientation-sensor.idl +0 -35
  179. package/page-lifecycle.idl +0 -19
  180. package/paint-timing.idl +0 -7
  181. package/payment-handler.idl +0 -131
  182. package/payment-request.idl +0 -112
  183. package/performance-measure-memory.idl +0 -30
  184. package/performance-timeline.idl +0 -49
  185. package/periodic-background-sync.idl +0 -34
  186. package/permissions-policy.idl +0 -29
  187. package/permissions-request.idl +0 -8
  188. package/permissions-revoke.idl +0 -8
  189. package/permissions.idl +0 -41
  190. package/picture-in-picture.idl +0 -41
  191. package/pointerevents.idl +0 -64
  192. package/pointerlock.idl +0 -28
  193. package/portals.idl +0 -50
  194. package/prefer-current-tab.idl +0 -8
  195. package/prerendering-revamped.idl +0 -15
  196. package/presentation-api.idl +0 -95
  197. package/private-click-measurement.idl +0 -8
  198. package/proximity.idl +0 -18
  199. package/push-api.idl +0 -93
  200. package/raw-camera-access.idl +0 -18
  201. package/referrer-policy.idl +0 -16
  202. package/remote-playback.idl +0 -32
  203. package/reporting.idl +0 -39
  204. package/requestStorageAccessForOrigin.idl +0 -12
  205. package/requestidlecallback.idl +0 -20
  206. package/resize-observer.idl +0 -37
  207. package/resource-timing.idl +0 -39
  208. package/sanitizer-api.idl +0 -38
  209. package/savedata.idl +0 -10
  210. package/scheduling-apis.idl +0 -57
  211. package/screen-capture.idl +0 -85
  212. package/screen-orientation.idl +0 -35
  213. package/screen-wake-lock.idl +0 -24
  214. package/scroll-animations.idl +0 -41
  215. package/scroll-to-text-fragment.idl +0 -12
  216. package/secure-payment-confirmation.idl +0 -52
  217. package/selection-api.idl +0 -46
  218. package/serial.idl +0 -85
  219. package/server-timing.idl +0 -17
  220. package/service-workers.idl +0 -240
  221. package/shape-detection-api.idl +0 -69
  222. package/speech-api.idl +0 -202
  223. package/storage-access.idl +0 -9
  224. package/storage.idl +0 -25
  225. package/streams.idl +0 -222
  226. package/svg-animations.idl +0 -68
  227. package/testutils.idl +0 -9
  228. package/text-detection-api.idl +0 -18
  229. package/touch-events.idl +0 -79
  230. package/trust-token-api.idl +0 -25
  231. package/trusted-types.idl +0 -71
  232. package/turtledove.idl +0 -63
  233. package/ua-client-hints.idl +0 -44
  234. package/uievents.idl +0 -248
  235. package/url.idl +0 -44
  236. package/urlpattern.idl +0 -59
  237. package/user-timing.idl +0 -34
  238. package/vibration.idl +0 -10
  239. package/video-rvfc.idl +0 -27
  240. package/virtual-keyboard.idl +0 -21
  241. package/wai-aria.idl +0 -59
  242. package/wasm-js-api.idl +0 -110
  243. package/wasm-web-api.idl +0 -11
  244. package/web-animations-2.idl +0 -102
  245. package/web-animations.idl +0 -149
  246. package/web-app-launch.idl +0 -19
  247. package/web-bluetooth.idl +0 -251
  248. package/web-locks.idl +0 -50
  249. package/web-nfc.idl +0 -81
  250. package/web-otp.idl +0 -21
  251. package/web-share.idl +0 -16
  252. package/webaudio.idl +0 -674
  253. package/webauthn.idl +0 -349
  254. package/webcodecs-aac-codec-registration.idl +0 -17
  255. package/webcodecs-avc-codec-registration.idl +0 -17
  256. package/webcodecs-flac-codec-registration.idl +0 -13
  257. package/webcodecs-hevc-codec-registration.idl +0 -17
  258. package/webcodecs-opus-codec-registration.idl +0 -22
  259. package/webcodecs.idl +0 -494
  260. package/webcrypto-secure-curves.idl +0 -8
  261. package/webdriver.idl +0 -9
  262. package/webgl1.idl +0 -745
  263. package/webgl2.idl +0 -582
  264. package/webgpu.idl +0 -1267
  265. package/webhid.idl +0 -127
  266. package/webidl.idl +0 -48
  267. package/webmidi.idl +0 -91
  268. package/webnn.idl +0 -549
  269. package/webrtc-encoded-transform.idl +0 -127
  270. package/webrtc-ice.idl +0 -24
  271. package/webrtc-identity.idl +0 -97
  272. package/webrtc-priority.idl +0 -24
  273. package/webrtc-stats.idl +0 -288
  274. package/webrtc-svc.idl +0 -8
  275. package/webrtc.idl +0 -628
  276. package/websockets.idl +0 -48
  277. package/webtransport.idl +0 -142
  278. package/webusb.idl +0 -249
  279. package/webvtt.idl +0 -40
  280. package/webxr-ar-module.idl +0 -29
  281. package/webxr-depth-sensing.idl +0 -57
  282. package/webxr-dom-overlays.idl +0 -31
  283. package/webxr-gamepads-module.idl +0 -8
  284. package/webxr-hand-input.idl +0 -66
  285. package/webxr-hit-test.idl +0 -69
  286. package/webxr-lighting-estimation.idl +0 -39
  287. package/webxr.idl +0 -295
  288. package/webxrlayers.idl +0 -212
  289. package/window-controls-overlay.idl +0 -28
  290. package/window-placement.idl +0 -42
  291. package/xhr.idl +0 -99
package/webaudio.idl DELETED
@@ -1,674 +0,0 @@
1
- // GENERATED CONTENT - DO NOT EDIT
2
- // Content was automatically extracted by Reffy into webref
3
- // (https://github.com/w3c/webref)
4
- // Source: Web Audio API (https://webaudio.github.io/web-audio-api/)
5
-
6
- enum AudioContextState {
7
- "suspended",
8
- "running",
9
- "closed"
10
- };
11
-
12
- callback DecodeErrorCallback = undefined (DOMException error);
13
-
14
- callback DecodeSuccessCallback = undefined (AudioBuffer decodedData);
15
-
16
- [Exposed=Window]
17
- interface BaseAudioContext : EventTarget {
18
- readonly attribute AudioDestinationNode destination;
19
- readonly attribute float sampleRate;
20
- readonly attribute double currentTime;
21
- readonly attribute AudioListener listener;
22
- readonly attribute AudioContextState state;
23
- [SameObject, SecureContext]
24
- readonly attribute AudioWorklet audioWorklet;
25
- attribute EventHandler onstatechange;
26
-
27
- AnalyserNode createAnalyser ();
28
- BiquadFilterNode createBiquadFilter ();
29
- AudioBuffer createBuffer (unsigned long numberOfChannels,
30
- unsigned long length,
31
- float sampleRate);
32
- AudioBufferSourceNode createBufferSource ();
33
- ChannelMergerNode createChannelMerger (optional unsigned long numberOfInputs = 6);
34
- ChannelSplitterNode createChannelSplitter (
35
- optional unsigned long numberOfOutputs = 6);
36
- ConstantSourceNode createConstantSource ();
37
- ConvolverNode createConvolver ();
38
- DelayNode createDelay (optional double maxDelayTime = 1.0);
39
- DynamicsCompressorNode createDynamicsCompressor ();
40
- GainNode createGain ();
41
- IIRFilterNode createIIRFilter (sequence<double> feedforward,
42
- sequence<double> feedback);
43
- OscillatorNode createOscillator ();
44
- PannerNode createPanner ();
45
- PeriodicWave createPeriodicWave (sequence<float> real,
46
- sequence<float> imag,
47
- optional PeriodicWaveConstraints constraints = {});
48
- ScriptProcessorNode createScriptProcessor(
49
- optional unsigned long bufferSize = 0,
50
- optional unsigned long numberOfInputChannels = 2,
51
- optional unsigned long numberOfOutputChannels = 2);
52
- StereoPannerNode createStereoPanner ();
53
- WaveShaperNode createWaveShaper ();
54
-
55
- Promise<AudioBuffer> decodeAudioData (
56
- ArrayBuffer audioData,
57
- optional DecodeSuccessCallback? successCallback,
58
- optional DecodeErrorCallback? errorCallback);
59
- };
60
-
61
- enum AudioContextLatencyCategory {
62
- "balanced",
63
- "interactive",
64
- "playback"
65
- };
66
-
67
- enum AudioSinkType {
68
- "none"
69
- };
70
-
71
- [Exposed=Window]
72
- interface AudioContext : BaseAudioContext {
73
- constructor (optional AudioContextOptions contextOptions = {});
74
- readonly attribute double baseLatency;
75
- readonly attribute double outputLatency;
76
- [SecureContext] readonly attribute (DOMString or AudioSinkInfo) sinkId;
77
- [SecureContext] readonly attribute AudioRenderCapacity renderCapacity;
78
- attribute EventHandler onsinkchange;
79
- AudioTimestamp getOutputTimestamp ();
80
- Promise<undefined> resume ();
81
- Promise<undefined> suspend ();
82
- Promise<undefined> close ();
83
- [SecureContext] Promise<undefined> setSinkId ((DOMString or AudioSinkOptions) sinkId);
84
- MediaElementAudioSourceNode createMediaElementSource (HTMLMediaElement mediaElement);
85
- MediaStreamAudioSourceNode createMediaStreamSource (MediaStream mediaStream);
86
- MediaStreamTrackAudioSourceNode createMediaStreamTrackSource (
87
- MediaStreamTrack mediaStreamTrack);
88
- MediaStreamAudioDestinationNode createMediaStreamDestination ();
89
- };
90
-
91
- dictionary AudioContextOptions {
92
- (AudioContextLatencyCategory or double) latencyHint = "interactive";
93
- float sampleRate;
94
- (DOMString or AudioSinkOptions) sinkId;
95
- };
96
-
97
- dictionary AudioSinkOptions {
98
- required AudioSinkType type;
99
- };
100
-
101
- [Exposed=Window]
102
- interface AudioSinkInfo {
103
- readonly attribute AudioSinkType type;
104
- };
105
-
106
- dictionary AudioTimestamp {
107
- double contextTime;
108
- DOMHighResTimeStamp performanceTime;
109
- };
110
-
111
- [Exposed=Window]
112
- interface AudioRenderCapacity : EventTarget {
113
- undefined start(optional AudioRenderCapacityOptions options = {});
114
- undefined stop();
115
- attribute EventHandler onupdate;
116
- };
117
-
118
- dictionary AudioRenderCapacityOptions {
119
- double updateInterval = 1;
120
- };
121
-
122
- [Exposed=Window]
123
- interface AudioRenderCapacityEvent : Event {
124
- constructor (DOMString type, optional AudioRenderCapacityEventInit eventInitDict = {});
125
- readonly attribute double timestamp;
126
- readonly attribute double averageLoad;
127
- readonly attribute double peakLoad;
128
- readonly attribute double underrunRatio;
129
- };
130
-
131
- dictionary AudioRenderCapacityEventInit : EventInit {
132
- double timestamp = 0;
133
- double averageLoad = 0;
134
- double peakLoad = 0;
135
- double underrunRatio = 0;
136
- };
137
-
138
- [Exposed=Window]
139
- interface OfflineAudioContext : BaseAudioContext {
140
- constructor(OfflineAudioContextOptions contextOptions);
141
- constructor(unsigned long numberOfChannels, unsigned long length, float sampleRate);
142
- Promise<AudioBuffer> startRendering();
143
- Promise<undefined> resume();
144
- Promise<undefined> suspend(double suspendTime);
145
- readonly attribute unsigned long length;
146
- attribute EventHandler oncomplete;
147
- };
148
-
149
- dictionary OfflineAudioContextOptions {
150
- unsigned long numberOfChannels = 1;
151
- required unsigned long length;
152
- required float sampleRate;
153
- };
154
-
155
- [Exposed=Window]
156
- interface OfflineAudioCompletionEvent : Event {
157
- constructor (DOMString type, OfflineAudioCompletionEventInit eventInitDict);
158
- readonly attribute AudioBuffer renderedBuffer;
159
- };
160
-
161
- dictionary OfflineAudioCompletionEventInit : EventInit {
162
- required AudioBuffer renderedBuffer;
163
- };
164
-
165
- [Exposed=Window]
166
- interface AudioBuffer {
167
- constructor (AudioBufferOptions options);
168
- readonly attribute float sampleRate;
169
- readonly attribute unsigned long length;
170
- readonly attribute double duration;
171
- readonly attribute unsigned long numberOfChannels;
172
- Float32Array getChannelData (unsigned long channel);
173
- undefined copyFromChannel (Float32Array destination,
174
- unsigned long channelNumber,
175
- optional unsigned long bufferOffset = 0);
176
- undefined copyToChannel (Float32Array source,
177
- unsigned long channelNumber,
178
- optional unsigned long bufferOffset = 0);
179
- };
180
-
181
- dictionary AudioBufferOptions {
182
- unsigned long numberOfChannels = 1;
183
- required unsigned long length;
184
- required float sampleRate;
185
- };
186
-
187
- [Exposed=Window]
188
- interface AudioNode : EventTarget {
189
- AudioNode connect (AudioNode destinationNode,
190
- optional unsigned long output = 0,
191
- optional unsigned long input = 0);
192
- undefined connect (AudioParam destinationParam, optional unsigned long output = 0);
193
- undefined disconnect ();
194
- undefined disconnect (unsigned long output);
195
- undefined disconnect (AudioNode destinationNode);
196
- undefined disconnect (AudioNode destinationNode, unsigned long output);
197
- undefined disconnect (AudioNode destinationNode,
198
- unsigned long output,
199
- unsigned long input);
200
- undefined disconnect (AudioParam destinationParam);
201
- undefined disconnect (AudioParam destinationParam, unsigned long output);
202
- readonly attribute BaseAudioContext context;
203
- readonly attribute unsigned long numberOfInputs;
204
- readonly attribute unsigned long numberOfOutputs;
205
- attribute unsigned long channelCount;
206
- attribute ChannelCountMode channelCountMode;
207
- attribute ChannelInterpretation channelInterpretation;
208
- };
209
-
210
- enum ChannelCountMode {
211
- "max",
212
- "clamped-max",
213
- "explicit"
214
- };
215
-
216
- enum ChannelInterpretation {
217
- "speakers",
218
- "discrete"
219
- };
220
-
221
- dictionary AudioNodeOptions {
222
- unsigned long channelCount;
223
- ChannelCountMode channelCountMode;
224
- ChannelInterpretation channelInterpretation;
225
- };
226
-
227
- enum AutomationRate {
228
- "a-rate",
229
- "k-rate"
230
- };
231
-
232
- [Exposed=Window]
233
- interface AudioParam {
234
- attribute float value;
235
- attribute AutomationRate automationRate;
236
- readonly attribute float defaultValue;
237
- readonly attribute float minValue;
238
- readonly attribute float maxValue;
239
- AudioParam setValueAtTime (float value, double startTime);
240
- AudioParam linearRampToValueAtTime (float value, double endTime);
241
- AudioParam exponentialRampToValueAtTime (float value, double endTime);
242
- AudioParam setTargetAtTime (float target, double startTime, float timeConstant);
243
- AudioParam setValueCurveAtTime (sequence<float> values,
244
- double startTime,
245
- double duration);
246
- AudioParam cancelScheduledValues (double cancelTime);
247
- AudioParam cancelAndHoldAtTime (double cancelTime);
248
- };
249
-
250
- [Exposed=Window]
251
- interface AudioScheduledSourceNode : AudioNode {
252
- attribute EventHandler onended;
253
- undefined start(optional double when = 0);
254
- undefined stop(optional double when = 0);
255
- };
256
-
257
- [Exposed=Window]
258
- interface AnalyserNode : AudioNode {
259
- constructor (BaseAudioContext context, optional AnalyserOptions options = {});
260
- undefined getFloatFrequencyData (Float32Array array);
261
- undefined getByteFrequencyData (Uint8Array array);
262
- undefined getFloatTimeDomainData (Float32Array array);
263
- undefined getByteTimeDomainData (Uint8Array array);
264
- attribute unsigned long fftSize;
265
- readonly attribute unsigned long frequencyBinCount;
266
- attribute double minDecibels;
267
- attribute double maxDecibels;
268
- attribute double smoothingTimeConstant;
269
- };
270
-
271
- dictionary AnalyserOptions : AudioNodeOptions {
272
- unsigned long fftSize = 2048;
273
- double maxDecibels = -30;
274
- double minDecibels = -100;
275
- double smoothingTimeConstant = 0.8;
276
- };
277
-
278
- [Exposed=Window]
279
- interface AudioBufferSourceNode : AudioScheduledSourceNode {
280
- constructor (BaseAudioContext context,
281
- optional AudioBufferSourceOptions options = {});
282
- attribute AudioBuffer? buffer;
283
- readonly attribute AudioParam playbackRate;
284
- readonly attribute AudioParam detune;
285
- attribute boolean loop;
286
- attribute double loopStart;
287
- attribute double loopEnd;
288
- undefined start (optional double when = 0,
289
- optional double offset,
290
- optional double duration);
291
- };
292
-
293
- dictionary AudioBufferSourceOptions {
294
- AudioBuffer? buffer;
295
- float detune = 0;
296
- boolean loop = false;
297
- double loopEnd = 0;
298
- double loopStart = 0;
299
- float playbackRate = 1;
300
- };
301
-
302
- [Exposed=Window]
303
- interface AudioDestinationNode : AudioNode {
304
- readonly attribute unsigned long maxChannelCount;
305
- };
306
-
307
- [Exposed=Window]
308
- interface AudioListener {
309
- readonly attribute AudioParam positionX;
310
- readonly attribute AudioParam positionY;
311
- readonly attribute AudioParam positionZ;
312
- readonly attribute AudioParam forwardX;
313
- readonly attribute AudioParam forwardY;
314
- readonly attribute AudioParam forwardZ;
315
- readonly attribute AudioParam upX;
316
- readonly attribute AudioParam upY;
317
- readonly attribute AudioParam upZ;
318
- undefined setPosition (float x, float y, float z);
319
- undefined setOrientation (float x, float y, float z, float xUp, float yUp, float zUp);
320
- };
321
-
322
- [Exposed=Window]
323
- interface AudioProcessingEvent : Event {
324
- constructor (DOMString type, AudioProcessingEventInit eventInitDict);
325
- readonly attribute double playbackTime;
326
- readonly attribute AudioBuffer inputBuffer;
327
- readonly attribute AudioBuffer outputBuffer;
328
- };
329
-
330
- dictionary AudioProcessingEventInit : EventInit {
331
- required double playbackTime;
332
- required AudioBuffer inputBuffer;
333
- required AudioBuffer outputBuffer;
334
- };
335
-
336
- enum BiquadFilterType {
337
- "lowpass",
338
- "highpass",
339
- "bandpass",
340
- "lowshelf",
341
- "highshelf",
342
- "peaking",
343
- "notch",
344
- "allpass"
345
- };
346
-
347
- [Exposed=Window]
348
- interface BiquadFilterNode : AudioNode {
349
- constructor (BaseAudioContext context, optional BiquadFilterOptions options = {});
350
- attribute BiquadFilterType type;
351
- readonly attribute AudioParam frequency;
352
- readonly attribute AudioParam detune;
353
- readonly attribute AudioParam Q;
354
- readonly attribute AudioParam gain;
355
- undefined getFrequencyResponse (Float32Array frequencyHz,
356
- Float32Array magResponse,
357
- Float32Array phaseResponse);
358
- };
359
-
360
- dictionary BiquadFilterOptions : AudioNodeOptions {
361
- BiquadFilterType type = "lowpass";
362
- float Q = 1;
363
- float detune = 0;
364
- float frequency = 350;
365
- float gain = 0;
366
- };
367
-
368
- [Exposed=Window]
369
- interface ChannelMergerNode : AudioNode {
370
- constructor (BaseAudioContext context, optional ChannelMergerOptions options = {});
371
- };
372
-
373
- dictionary ChannelMergerOptions : AudioNodeOptions {
374
- unsigned long numberOfInputs = 6;
375
- };
376
-
377
- [Exposed=Window]
378
- interface ChannelSplitterNode : AudioNode {
379
- constructor (BaseAudioContext context, optional ChannelSplitterOptions options = {});
380
- };
381
-
382
- dictionary ChannelSplitterOptions : AudioNodeOptions {
383
- unsigned long numberOfOutputs = 6;
384
- };
385
-
386
- [Exposed=Window]
387
- interface ConstantSourceNode : AudioScheduledSourceNode {
388
- constructor (BaseAudioContext context, optional ConstantSourceOptions options = {});
389
- readonly attribute AudioParam offset;
390
- };
391
-
392
- dictionary ConstantSourceOptions {
393
- float offset = 1;
394
- };
395
-
396
- [Exposed=Window]
397
- interface ConvolverNode : AudioNode {
398
- constructor (BaseAudioContext context, optional ConvolverOptions options = {});
399
- attribute AudioBuffer? buffer;
400
- attribute boolean normalize;
401
- };
402
-
403
- dictionary ConvolverOptions : AudioNodeOptions {
404
- AudioBuffer? buffer;
405
- boolean disableNormalization = false;
406
- };
407
-
408
- [Exposed=Window]
409
- interface DelayNode : AudioNode {
410
- constructor (BaseAudioContext context, optional DelayOptions options = {});
411
- readonly attribute AudioParam delayTime;
412
- };
413
-
414
- dictionary DelayOptions : AudioNodeOptions {
415
- double maxDelayTime = 1;
416
- double delayTime = 0;
417
- };
418
-
419
- [Exposed=Window]
420
- interface DynamicsCompressorNode : AudioNode {
421
- constructor (BaseAudioContext context,
422
- optional DynamicsCompressorOptions options = {});
423
- readonly attribute AudioParam threshold;
424
- readonly attribute AudioParam knee;
425
- readonly attribute AudioParam ratio;
426
- readonly attribute float reduction;
427
- readonly attribute AudioParam attack;
428
- readonly attribute AudioParam release;
429
- };
430
-
431
- dictionary DynamicsCompressorOptions : AudioNodeOptions {
432
- float attack = 0.003;
433
- float knee = 30;
434
- float ratio = 12;
435
- float release = 0.25;
436
- float threshold = -24;
437
- };
438
-
439
- [Exposed=Window]
440
- interface GainNode : AudioNode {
441
- constructor (BaseAudioContext context, optional GainOptions options = {});
442
- readonly attribute AudioParam gain;
443
- };
444
-
445
- dictionary GainOptions : AudioNodeOptions {
446
- float gain = 1.0;
447
- };
448
-
449
- [Exposed=Window]
450
- interface IIRFilterNode : AudioNode {
451
- constructor (BaseAudioContext context, IIRFilterOptions options);
452
- undefined getFrequencyResponse (Float32Array frequencyHz,
453
- Float32Array magResponse,
454
- Float32Array phaseResponse);
455
- };
456
-
457
- dictionary IIRFilterOptions : AudioNodeOptions {
458
- required sequence<double> feedforward;
459
- required sequence<double> feedback;
460
- };
461
-
462
- [Exposed=Window]
463
- interface MediaElementAudioSourceNode : AudioNode {
464
- constructor (AudioContext context, MediaElementAudioSourceOptions options);
465
- [SameObject] readonly attribute HTMLMediaElement mediaElement;
466
- };
467
-
468
- dictionary MediaElementAudioSourceOptions {
469
- required HTMLMediaElement mediaElement;
470
- };
471
-
472
- [Exposed=Window]
473
- interface MediaStreamAudioDestinationNode : AudioNode {
474
- constructor (AudioContext context, optional AudioNodeOptions options = {});
475
- readonly attribute MediaStream stream;
476
- };
477
-
478
- [Exposed=Window]
479
- interface MediaStreamAudioSourceNode : AudioNode {
480
- constructor (AudioContext context, MediaStreamAudioSourceOptions options);
481
- [SameObject] readonly attribute MediaStream mediaStream;
482
- };
483
-
484
- dictionary MediaStreamAudioSourceOptions {
485
- required MediaStream mediaStream;
486
- };
487
-
488
- [Exposed=Window]
489
- interface MediaStreamTrackAudioSourceNode : AudioNode {
490
- constructor (AudioContext context, MediaStreamTrackAudioSourceOptions options);
491
- };
492
-
493
- dictionary MediaStreamTrackAudioSourceOptions {
494
- required MediaStreamTrack mediaStreamTrack;
495
- };
496
-
497
- enum OscillatorType {
498
- "sine",
499
- "square",
500
- "sawtooth",
501
- "triangle",
502
- "custom"
503
- };
504
-
505
- [Exposed=Window]
506
- interface OscillatorNode : AudioScheduledSourceNode {
507
- constructor (BaseAudioContext context, optional OscillatorOptions options = {});
508
- attribute OscillatorType type;
509
- readonly attribute AudioParam frequency;
510
- readonly attribute AudioParam detune;
511
- undefined setPeriodicWave (PeriodicWave periodicWave);
512
- };
513
-
514
- dictionary OscillatorOptions : AudioNodeOptions {
515
- OscillatorType type = "sine";
516
- float frequency = 440;
517
- float detune = 0;
518
- PeriodicWave periodicWave;
519
- };
520
-
521
- enum PanningModelType {
522
- "equalpower",
523
- "HRTF"
524
- };
525
-
526
- enum DistanceModelType {
527
- "linear",
528
- "inverse",
529
- "exponential"
530
- };
531
-
532
- [Exposed=Window]
533
- interface PannerNode : AudioNode {
534
- constructor (BaseAudioContext context, optional PannerOptions options = {});
535
- attribute PanningModelType panningModel;
536
- readonly attribute AudioParam positionX;
537
- readonly attribute AudioParam positionY;
538
- readonly attribute AudioParam positionZ;
539
- readonly attribute AudioParam orientationX;
540
- readonly attribute AudioParam orientationY;
541
- readonly attribute AudioParam orientationZ;
542
- attribute DistanceModelType distanceModel;
543
- attribute double refDistance;
544
- attribute double maxDistance;
545
- attribute double rolloffFactor;
546
- attribute double coneInnerAngle;
547
- attribute double coneOuterAngle;
548
- attribute double coneOuterGain;
549
- undefined setPosition (float x, float y, float z);
550
- undefined setOrientation (float x, float y, float z);
551
- };
552
-
553
- dictionary PannerOptions : AudioNodeOptions {
554
- PanningModelType panningModel = "equalpower";
555
- DistanceModelType distanceModel = "inverse";
556
- float positionX = 0;
557
- float positionY = 0;
558
- float positionZ = 0;
559
- float orientationX = 1;
560
- float orientationY = 0;
561
- float orientationZ = 0;
562
- double refDistance = 1;
563
- double maxDistance = 10000;
564
- double rolloffFactor = 1;
565
- double coneInnerAngle = 360;
566
- double coneOuterAngle = 360;
567
- double coneOuterGain = 0;
568
- };
569
-
570
- [Exposed=Window]
571
- interface PeriodicWave {
572
- constructor (BaseAudioContext context, optional PeriodicWaveOptions options = {});
573
- };
574
-
575
- dictionary PeriodicWaveConstraints {
576
- boolean disableNormalization = false;
577
- };
578
-
579
- dictionary PeriodicWaveOptions : PeriodicWaveConstraints {
580
- sequence<float> real;
581
- sequence<float> imag;
582
- };
583
-
584
- [Exposed=Window]
585
- interface ScriptProcessorNode : AudioNode {
586
- attribute EventHandler onaudioprocess;
587
- readonly attribute long bufferSize;
588
- };
589
-
590
- [Exposed=Window]
591
- interface StereoPannerNode : AudioNode {
592
- constructor (BaseAudioContext context, optional StereoPannerOptions options = {});
593
- readonly attribute AudioParam pan;
594
- };
595
-
596
- dictionary StereoPannerOptions : AudioNodeOptions {
597
- float pan = 0;
598
- };
599
-
600
- enum OverSampleType {
601
- "none",
602
- "2x",
603
- "4x"
604
- };
605
-
606
- [Exposed=Window]
607
- interface WaveShaperNode : AudioNode {
608
- constructor (BaseAudioContext context, optional WaveShaperOptions options = {});
609
- attribute Float32Array? curve;
610
- attribute OverSampleType oversample;
611
- };
612
-
613
- dictionary WaveShaperOptions : AudioNodeOptions {
614
- sequence<float> curve;
615
- OverSampleType oversample = "none";
616
- };
617
-
618
- [Exposed=Window, SecureContext]
619
- interface AudioWorklet : Worklet {
620
- readonly attribute MessagePort port;
621
- };
622
-
623
- callback AudioWorkletProcessorConstructor = AudioWorkletProcessor (object options);
624
-
625
- [Global=(Worklet, AudioWorklet), Exposed=AudioWorklet]
626
- interface AudioWorkletGlobalScope : WorkletGlobalScope {
627
- undefined registerProcessor (DOMString name,
628
- AudioWorkletProcessorConstructor processorCtor);
629
- readonly attribute unsigned long long currentFrame;
630
- readonly attribute double currentTime;
631
- readonly attribute float sampleRate;
632
- readonly attribute MessagePort port;
633
- };
634
-
635
- [Exposed=Window]
636
- interface AudioParamMap {
637
- readonly maplike<DOMString, AudioParam>;
638
- };
639
-
640
- [Exposed=Window, SecureContext]
641
- interface AudioWorkletNode : AudioNode {
642
- constructor (BaseAudioContext context, DOMString name,
643
- optional AudioWorkletNodeOptions options = {});
644
- readonly attribute AudioParamMap parameters;
645
- readonly attribute MessagePort port;
646
- attribute EventHandler onprocessorerror;
647
- };
648
-
649
- dictionary AudioWorkletNodeOptions : AudioNodeOptions {
650
- unsigned long numberOfInputs = 1;
651
- unsigned long numberOfOutputs = 1;
652
- sequence<unsigned long> outputChannelCount;
653
- record<DOMString, double> parameterData;
654
- object processorOptions;
655
- };
656
-
657
- [Exposed=AudioWorklet]
658
- interface AudioWorkletProcessor {
659
- constructor ();
660
- readonly attribute MessagePort port;
661
- };
662
-
663
- callback AudioWorkletProcessCallback =
664
- boolean (FrozenArray<FrozenArray<Float32Array>> inputs,
665
- FrozenArray<FrozenArray<Float32Array>> outputs,
666
- object parameters);
667
-
668
- dictionary AudioParamDescriptor {
669
- required DOMString name;
670
- float defaultValue = 0;
671
- float minValue = -3.4028235e38;
672
- float maxValue = 3.4028235e38;
673
- AutomationRate automationRate = "a-rate";
674
- };