about summary refs log tree commit homepage
path: root/lib/dtas/player/client_handler.rb
diff options
authorEric Wong <e@80x24.org>2015-12-14 08:04:32 +0000
committerEric Wong <e@80x24.org>2015-12-14 08:20:34 +0000
commit7bed564d979ce7eceac9cd382be5c993cf0acfc5 (patch)
tree058d06d065f88fdcd65bf91c50bfb40e93105546 /lib/dtas/player/client_handler.rb
parent9263eecf93555beb3567af401a2bfdf25df5e8cd (diff)
This is on a linear scale from 0.0 (mute) to 1.0 (no change)
This is in the MPRIS spec and mpd as well (scaled to 0-100)

This changes dtas-console key bindings (0/9) slightly to match
mplayer more closely.  ReplayGain preamp adjustment has moved from
'0'/'9' to '7'/'8' keys.  The 'm' key also toggles mute state (the
pre-mute volume is stored in the dtas-console instance, not in
dtas-player itself).
Diffstat (limited to 'lib/dtas/player/client_handler.rb')
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dtas/player/client_handler.rb b/lib/dtas/player/client_handler.rb
index a27e4f5..498388e 100644
--- a/lib/dtas/player/client_handler.rb
+++ b/lib/dtas/player/client_handler.rb
@@ -259,7 +259,7 @@ module DTAS::Player::ClientHandler # :nodoc:
         rv = set_bool(io, kv, v) { |b| @rg.fallback_track = b }
         rv == true or return rv
       when %r{(?:gain_threshold|norm_threshold|
-              preamp|norm_level|fallback_gain)[+-]?\z}x
+              preamp|norm_level|fallback_gain|volume)[+-]?\z}x
         rv = adjust_numeric(io, @rg, k, v)
         rv == true or return rv