Module: MPD::Client::Commands::PlaybackOptions

Defined in:
lib/mpd/client/commands/playback_options.rb

Overview

Instance Method Summary collapse

Instance Method Details

#change_volume_by(val) ⇒ Object



30
31
32
# File 'lib/mpd/client/commands/playback_options.rb', line 30

def change_volume_by(val)
  execute("volume #{val}")
end

#consume(state) ⇒ Object



6
7
8
# File 'lib/mpd/client/commands/playback_options.rb', line 6

def consume(state)
  execute "consume #{state ? 1 : 0}"
end

#crossfade(state) ⇒ Object



10
11
12
# File 'lib/mpd/client/commands/playback_options.rb', line 10

def crossfade(state)
  execute "crossfade #{state ? 1 : 0}"
end

#random(state) ⇒ Object



14
15
16
# File 'lib/mpd/client/commands/playback_options.rb', line 14

def random(state)
  execute "random #{state ? 1 : 0}"
end

#repeat(state) ⇒ Object



18
19
20
# File 'lib/mpd/client/commands/playback_options.rb', line 18

def repeat(state)
  execute "repeat #{state ? 1 : 0}"
end

#single(state) ⇒ Object



22
23
24
# File 'lib/mpd/client/commands/playback_options.rb', line 22

def single(state)
  execute "single #{state ? 1 : 0}"
end

#volume(val) ⇒ Object



26
27
28
# File 'lib/mpd/client/commands/playback_options.rb', line 26

def volume(val)
  execute "setvol #{val}"
end