BaseAudioContext.idl [plain text]
[
ActiveDOMObject,
Conditional=WEB_AUDIO,
EnabledBySetting=WebAudio&ModernUnprefixedWebAudio,
ExportMacro=WEBCORE_EXPORT,
Exposed=Window
] interface BaseAudioContext : EventTarget {
readonly attribute AudioDestinationNode destination;
readonly attribute double currentTime;
readonly attribute float sampleRate;
readonly attribute AudioListener listener;
[SameObject, SecureContext, EnabledBySetting=AudioWorklet] readonly attribute AudioWorklet audioWorklet;
readonly attribute AudioContextState state;
attribute EventHandler onstatechange;
[MayThrowException] AudioBuffer createBuffer(unsigned long numberOfChannels, unsigned long numberOfFrames, float sampleRate);
Promise<AudioBuffer> decodeAudioData(ArrayBuffer audioData, optional AudioBufferCallback? successCallback, optional AudioBufferCallback? errorCallback);
[MayThrowException] AudioBufferSourceNode createBufferSource();
[MayThrowException] GainNode createGain();
[MayThrowException] DelayNode createDelay(optional double maxDelayTime = 1);
[MayThrowException] BiquadFilterNode createBiquadFilter();
[MayThrowException] WaveShaperNode createWaveShaper();
[MayThrowException] PannerNode createPanner();
[MayThrowException] ConvolverNode createConvolver();
[MayThrowException] DynamicsCompressorNode createDynamicsCompressor();
[MayThrowException] AnalyserNode createAnalyser();
[MayThrowException] ScriptProcessorNode createScriptProcessor(optional unsigned long bufferSize = 0, optional unsigned long numberOfInputChannels = 2, optional unsigned long numberOfOutputChannels = 2);
[MayThrowException] OscillatorNode createOscillator();
[MayThrowException] PeriodicWave createPeriodicWave(sequence<float> real, sequence<float> imag, optional PeriodicWaveOptions options);
[MayThrowException] ConstantSourceNode createConstantSource();
[MayThrowException] StereoPannerNode createStereoPanner();
[MayThrowException, CallWith=ScriptExecutionContext] IIRFilterNode createIIRFilter(sequence<double> feedforward, sequence<double> feedback);
[MayThrowException] ChannelSplitterNode createChannelSplitter(optional unsigned long numberOfOutputs = 6);
[MayThrowException] ChannelMergerNode createChannelMerger(optional unsigned long numberOfInputs = 6);
};