Skip to main content

Type Alias: AudioChannelMode

type AudioChannelMode = "auto-safe" | "auto" | "stereo" | "mono";

Defined in: packages/player/src/player.ts:233

Which channel layout the output is forced to — the typed subset of mpv's --audio-channels this library exposes.

  • 'auto-safe' — mpv's default: "Use the system's preferred channel layout. If there is none […] force stereo."
  • 'auto' — "Send the audio device whatever it accepts, preferring the audio's original channel layout."
  • 'stereo' / 'mono' — "Force a downmix to stereo or mono."

The option also accepts arbitrary layout lists (5.1, fl-fr-lfe); those stay reachable through mpvOptions / setPropertyString rather than being typed here, because a phone's audio output is stereo and a typed union of surround layouts would be an API for a case this library does not have.