Commit b3b5e23e461d6a2c3c3f757aa4e902539f85049e

Anton Maminov 2013-11-06T12:47:22

add support for volume

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8c3b4c7..0a8e91d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,7 +2,7 @@
 
 ### 0.0.4
 
-* Add support for readcomments, toggleoutput
+* Add support for readcomments, toggleoutput, volume
 
 ### 0.0.3
 
diff --git a/MPD_COMMANDS.md b/MPD_COMMANDS.md
index 88595e8..aa10953 100644
--- a/MPD_COMMANDS.md
+++ b/MPD_COMMANDS.md
@@ -131,6 +131,10 @@
 
 > Prints replay gain options. Currently, only the variable `replay_gain_mode` is returned.
 
+---
+`volume {CHANGE} => fetch_nothing`
+
+> Changes volume by amount `CHANGE`.
 
 ### Playback Control Commands
 
diff --git a/lib/mpd_client.rb b/lib/mpd_client.rb
index c72da85..e6a1095 100644
--- a/lib/mpd_client.rb
+++ b/lib/mpd_client.rb
@@ -31,6 +31,7 @@ COMMANDS = {
   "single"             => "fetch_nothing",
   "replay_gain_mode"   => "fetch_nothing",
   "replay_gain_status" => "fetch_item",
+  "volume"             => "fetch_nothing",
   # Playback Control Commands
   "next"               => "fetch_nothing",
   "pause"              => "fetch_nothing",