summaryrefslogtreecommitdiff
path: root/src/rhlibrary
diff options
context:
space:
mode:
Diffstat (limited to 'src/rhlibrary')
-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