paracusia v0.2.8 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 Functions

Link to this function all()
all() ::
  {:ok,
   [
     %Paracusia.MpdClient.AudioOutputs{
       outputenabled: term(),
       outputid: term(),
       outputname: term()
     }
   ]}
  | {:error, {String.t(), String.t()}}

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.