Firefox Tomorrow

web api interface

AudioSinkInfo

View on MDN ↗

Limited availability

The AudioSinkInfo interface of the Web Audio API represents information describing an AudioContext’s sink ID, retrieved via sinkId.

Instance properties

  • type Read only Experimental
    • : Returns the type of the audio output device.

Examples

If a new AudioContext is created with a sinkId value of { type: 'none' }, calling sinkId later in the code will return an AudioSinkInfo object containing type: 'none'. This is currently the only value available.

audioCtx = new window.AudioContext({
  sinkId: { type: "none" },
});

// …

audioCtx.sinkId;

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.

See also