diff options
Diffstat (limited to 'src')
-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 |