Module: MPD::Plugins::Outputs

Included in:
MPD
Defined in:
lib/ruby-mpd/plugins/outputs.rb

Overview

Commands related to audio output devices.

Instance Method Summary collapse

Instance Method Details

#disableoutput(num) ⇒ Boolean

Disables specified output.

Parameters:

  • num (Integer)

    Number of the output to disable.

Returns:

  • (Boolean)

    returns true if successful.



21
22
23
# File 'lib/ruby-mpd/plugins/outputs.rb', line 21

def disableoutput(num)
  send_command :disableoutput, num
end

#enableoutput(num) ⇒ Boolean

Enables specified output.

Parameters:

  • num (Integer)

    Number of the output to enable.

Returns:

  • (Boolean)

    returns true if successful.



14
15
16
# File 'lib/ruby-mpd/plugins/outputs.rb', line 14

def enableoutput(num)
  send_command :enableoutput, num
end

#outputsArray<Hash>

Gives a list of all outputs

Returns:

  • (Array<Hash>)

    An array of outputs.



7
8
9
# File 'lib/ruby-mpd/plugins/outputs.rb', line 7

def outputs
  send_command :outputs
end