Definition
Web Audio API 1.1 defines AudioContext
[Exposed=Window]
interface AudioContext : BaseAudioContext {
constructor (optional AudioContextOptions contextOptions = {});
readonly attribute double baseLatency;
readonly attribute double outputLatency;
[SecureContext] readonly attribute (DOMString or AudioSinkInfo) sinkId;
[SecureContext] readonly attribute AudioRenderCapacity renderCapacity;
attribute EventHandler onsinkchange;
attribute EventHandler onerror;
AudioTimestamp getOutputTimestamp ();
Promise<undefined> resume ();
Promise<undefined> suspend ();
Promise<undefined> close ();
[SecureContext] Promise<undefined> setSinkId ((DOMString or AudioSinkOptions) sinkId);
MediaElementAudioSourceNode createMediaElementSource (HTMLMediaElement mediaElement);
MediaStreamAudioSourceNode createMediaStreamSource (MediaStream mediaStream);
MediaStreamTrackAudioSourceNode createMediaStreamTrackSource (
MediaStreamTrack mediaStreamTrack);
MediaStreamAudioDestinationNode createMediaStreamDestination ();
};
Methods and attributes that return objects implementing AudioContext
Referring IDL interfaces/dictionaries
Referring specifications
- Autoplay Policy Detection refers to
AudioContext