| 
									
										
										
										
											2023-05-21 20:36:22 +01:00
										 |  |  | #import <DOM/EventTarget.idl> | 
					
						
							| 
									
										
										
										
											2023-06-27 13:34:51 -04:00
										 |  |  | #import <DOM/EventHandler.idl> | 
					
						
							| 
									
										
										
										
											2024-05-26 11:56:11 +12:00
										 |  |  | #import <WebAudio/AudioBuffer.idl> | 
					
						
							| 
									
										
										
										
											2024-07-21 15:24:25 +03:00
										 |  |  | #import <WebAudio/AudioBufferSourceNode.idl> | 
					
						
							| 
									
										
										
										
											2024-07-24 17:50:06 +12:00
										 |  |  | #import <WebAudio/AudioDestinationNode.idl> | 
					
						
							| 
									
										
										
										
											2024-10-17 21:26:01 +02:00
										 |  |  | #import <WebAudio/AudioListener.idl> | 
					
						
							| 
									
										
										
										
											2024-11-25 14:30:36 +01:00
										 |  |  | #import <WebAudio/ChannelMergerNode.idl> | 
					
						
							| 
									
										
										
										
											2024-05-05 11:18:02 +12:00
										 |  |  | #import <WebAudio/DynamicsCompressorNode.idl> | 
					
						
							| 
									
										
										
										
											2024-05-28 15:48:10 +12:00
										 |  |  | #import <WebAudio/GainNode.idl> | 
					
						
							| 
									
										
										
										
											2024-04-28 12:07:14 +12:00
										 |  |  | #import <WebAudio/OscillatorNode.idl> | 
					
						
							| 
									
										
										
										
											2024-12-13 21:41:06 +00:00
										 |  |  | #import <WebAudio/PannerNode.idl> | 
					
						
							| 
									
										
										
										
											2024-10-15 00:42:26 +02:00
										 |  |  | #import <WebIDL/DOMException.idl> | 
					
						
							| 
									
										
										
										
											2023-06-27 13:34:51 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | // https://www.w3.org/TR/webaudio/#enumdef-audiocontextstate | 
					
						
							|  |  |  | enum AudioContextState { "suspended", "running", "closed" }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-10-15 00:42:26 +02:00
										 |  |  | callback DecodeErrorCallback = undefined (DOMException error); | 
					
						
							| 
									
										
										
										
											2023-06-27 13:34:51 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-10-15 00:42:26 +02:00
										 |  |  | callback DecodeSuccessCallback = undefined (AudioBuffer decodedData); | 
					
						
							| 
									
										
										
										
											2023-05-21 20:36:22 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | // https://webaudio.github.io/web-audio-api/#BaseAudioContext | 
					
						
							|  |  |  | [Exposed=Window] | 
					
						
							|  |  |  | interface BaseAudioContext : EventTarget { | 
					
						
							| 
									
										
										
										
											2024-07-24 17:50:06 +12:00
										 |  |  |     readonly attribute AudioDestinationNode destination; | 
					
						
							| 
									
										
										
										
											2023-06-27 13:34:51 -04:00
										 |  |  |     readonly attribute float sampleRate; | 
					
						
							|  |  |  |     readonly attribute double currentTime; | 
					
						
							| 
									
										
										
										
											2024-10-17 21:26:01 +02:00
										 |  |  |     readonly attribute AudioListener listener; | 
					
						
							| 
									
										
										
										
											2023-06-27 13:34:51 -04:00
										 |  |  |     readonly attribute AudioContextState state; | 
					
						
							|  |  |  |     // FIXME: [SameObject, SecureContext] | 
					
						
							| 
									
										
										
										
											2024-05-19 22:15:54 +12:00
										 |  |  |     [FIXME] readonly attribute AudioWorklet audioWorklet; | 
					
						
							| 
									
										
										
										
											2023-06-27 13:34:51 -04:00
										 |  |  |     attribute EventHandler onstatechange; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-09-18 09:09:18 -04:00
										 |  |  |     AnalyserNode createAnalyser (); | 
					
						
							| 
									
										
										
										
											2024-07-21 21:25:14 +03:00
										 |  |  |     BiquadFilterNode createBiquadFilter (); | 
					
						
							| 
									
										
										
										
											2024-05-26 11:56:11 +12:00
										 |  |  |     AudioBuffer createBuffer(unsigned long numberOfChannels, unsigned long length, float sampleRate); | 
					
						
							| 
									
										
										
										
											2024-07-21 15:24:25 +03:00
										 |  |  |     AudioBufferSourceNode createBufferSource (); | 
					
						
							| 
									
										
										
										
											2024-11-25 14:30:36 +01:00
										 |  |  |     ChannelMergerNode createChannelMerger (optional unsigned long numberOfInputs = 6); | 
					
						
							| 
									
										
										
										
											2025-01-01 22:04:49 +00:00
										 |  |  |     ChannelSplitterNode createChannelSplitter (optional unsigned long numberOfOutputs = 6); | 
					
						
							| 
									
										
										
										
											2025-01-02 10:25:21 +00:00
										 |  |  |     ConstantSourceNode createConstantSource (); | 
					
						
							| 
									
										
										
										
											2024-05-19 22:15:54 +12:00
										 |  |  |     [FIXME] ConvolverNode createConvolver (); | 
					
						
							| 
									
										
										
										
											2025-01-04 00:39:02 +00:00
										 |  |  |     DelayNode createDelay (optional double maxDelayTime = 1.0); | 
					
						
							| 
									
										
										
										
											2024-05-05 11:18:02 +12:00
										 |  |  |     DynamicsCompressorNode createDynamicsCompressor(); | 
					
						
							| 
									
										
										
										
											2024-05-28 15:48:10 +12:00
										 |  |  |     GainNode createGain(); | 
					
						
							| 
									
										
										
										
											2024-05-19 22:15:54 +12:00
										 |  |  |     [FIXME] IIRFilterNode createIIRFilter (sequence<double> feedforward, sequence<double> feedback); | 
					
						
							| 
									
										
										
										
											2024-04-28 12:07:14 +12:00
										 |  |  |     OscillatorNode createOscillator(); | 
					
						
							| 
									
										
										
										
											2024-12-13 21:41:06 +00:00
										 |  |  |     PannerNode createPanner(); | 
					
						
							| 
									
										
										
										
											2025-01-02 12:40:56 +00:00
										 |  |  |     PeriodicWave createPeriodicWave (sequence<float> real, sequence<float> imag, optional PeriodicWaveConstraints constraints = {}); | 
					
						
							| 
									
										
										
										
											2024-05-19 22:15:54 +12:00
										 |  |  |     [FIXME] ScriptProcessorNode createScriptProcessor(optional unsigned long bufferSize = 0, optional unsigned long numberOfInputChannels = 2, optional unsigned long numberOfOutputChannels = 2); | 
					
						
							| 
									
										
										
										
											2025-01-17 15:00:24 +00:00
										 |  |  |     StereoPannerNode createStereoPanner (); | 
					
						
							| 
									
										
										
										
											2024-05-19 22:15:54 +12:00
										 |  |  |     [FIXME] WaveShaperNode createWaveShaper (); | 
					
						
							| 
									
										
										
										
											2023-06-27 13:34:51 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-10-15 00:42:26 +02:00
										 |  |  |     Promise<AudioBuffer> decodeAudioData (ArrayBuffer audioData, optional DecodeSuccessCallback? successCallback, optional DecodeErrorCallback? errorCallback); | 
					
						
							| 
									
										
										
										
											2023-05-21 20:36:22 +01:00
										 |  |  | }; |