diff options
author | Christian Pointner <equinox@helsinki.at> | 2016-02-03 15:31:37 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2016-02-03 15:31:37 (GMT) |
commit | 283a0cd6d86fa4a8b9d3fd4c2098de8249360493 (patch) | |
tree | cfe35c978a6415d7d2012a741f41e36ccc54f82b /src/rhlibrary | |
parent | 8c0f17ae872f5ccff6f6b827aad81077e2db397b (diff) |
fixed vumeter floor level
Diffstat (limited to 'src/rhlibrary')
-rw-r--r-- | src/rhlibrary/vumeter_widget.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rhlibrary/vumeter_widget.go b/src/rhlibrary/vumeter_widget.go index 3cbb452..233a660 100644 --- a/src/rhlibrary/vumeter_widget.go +++ b/src/rhlibrary/vumeter_widget.go @@ -92,6 +92,10 @@ type vuMeterLevel struct { } func (lvl *vuMeterLevel) setLevel(valdb float64) { + if valdb < -1*meterDBFloor { + valdb = -1 * meterDBFloor + } + val := valdb + meterDBFloor if val < 0 { val = 0 |