diff options
author | Eric Wong <e@80x24.org> | 2017-01-06 10:48:39 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2017-01-06 11:12:53 +0000 |
commit | be14891fd17aa9c4c8e8b18c6c761c79cac99b05 (patch) | |
tree | 57322611ab01021ee37a3ca745164ffe296b1ec5 /lib/dtas/player/client_handler.rb | |
parent | ee92073d8d2d48eb7f070a8542430a7d5177e6bd (diff) | |
download | dtas-be14891fd17aa9c4c8e8b18c6c761c79cac99b05.tar.gz |
Seeing tiny (or zero) values for the "gain" effect is an eyesore in process table output, and a waste of CPU cycles in sox. So stop using the "gain" effect for imperceptible changes in volume. While we're at it, remove the pointless knobs for setting this, too. They were never documented and I doubt anybody would want to tweak them at runtime.
Diffstat (limited to 'lib/dtas/player/client_handler.rb')
-rw-r--r-- | lib/dtas/player/client_handler.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/dtas/player/client_handler.rb b/lib/dtas/player/client_handler.rb index 05704c0..b17e90b 100644 --- a/lib/dtas/player/client_handler.rb +++ b/lib/dtas/player/client_handler.rb @@ -274,8 +274,7 @@ module DTAS::Player::ClientHandler # :nodoc: when "fallback_track" 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|volume)[+-]?\z}x + when %r{(?:preamp|norm_level|fallback_gain|volume)[+-]?\z}x rv = adjust_numeric(io, @rg, k, v) rv == true or return rv end |