summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-02-03 15:31:37 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-02-03 15:31:37 (GMT)
commit283a0cd6d86fa4a8b9d3fd4c2098de8249360493 (patch)
treecfe35c978a6415d7d2012a741f41e36ccc54f82b
parent8c0f17ae872f5ccff6f6b827aad81077e2db397b (diff)
fixed vumeter floor level
-rw-r--r--src/rhlibrary/vumeter_widget.go4
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