add support for volume
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
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",