paracusia v0.2.11 Paracusia.MpdClient.AudioOutputs

Functions related to audio output devices available to MPD.

See also: https://musicpd.org/doc/protocol/output_commands.html

Link to this section Summary

Functions

Returns a map containing information about all audio outputs

Turns an output off

Turns an output on

Turns an output on or off, depending on the current state

Link to this section Types

Link to this type

t()
t() :: %Paracusia.MpdClient.AudioOutputs{
  outputenabled: boolean(),
  outputid: integer(),
  outputname: binary()
}

Link to this section Functions

Returns a map containing information about all audio outputs.

Link to this function

disable(id)
disable(integer()) :: :ok | {:error, {String.t(), String.t()}}

Turns an output off.

Link to this function

enable(id)
enable(integer()) :: :ok | {:error, {String.t(), String.t()}}

Turns an output on.

Link to this function

toggle(id)
toggle(integer()) :: :ok | {:error, {String.t(), String.t()}}

Turns an output on or off, depending on the current state.