rg_state: fix no-op gain detection
commitbe14891fd17aa9c4c8e8b18c6c761c79cac99b05
authorEric Wong <e@80x24.org>
Fri, 6 Jan 2017 10:48:39 +0000 (6 10:48 +0000)
committerEric Wong <e@80x24.org>
Fri, 6 Jan 2017 11:12:53 +0000 (6 11:12 +0000)
tree57322611ab01021ee37a3ca745164ffe296b1ec5
parentee92073d8d2d48eb7f070a8542430a7d5177e6bd
rg_state: fix no-op gain detection

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.
lib/dtas/player/client_handler.rb
lib/dtas/rg_state.rb
test/test_rg_integration.rb
test/test_rg_state.rb