diff options
| author | Calvin Morrison <calvin@pobox.com> | 2026-05-17 09:44:33 -0400 |
|---|---|---|
| committer | Calvin Morrison <calvin@pobox.com> | 2026-05-17 09:44:33 -0400 |
| commit | 83ff745b43ebda7b33c52ac1a80a1408c59bfa70 (patch) | |
| tree | 3383f8d54d0523b3ed812957a56e70cb59a01b08 /src/ui/levelmeter.cpp | |
| parent | 5ccdfbc97811847611ee366848aa4b4b767bd656 (diff) | |
for the pulse peak streams do nothing if windows aren't open to reduce cpu
Diffstat (limited to 'src/ui/levelmeter.cpp')
| -rw-r--r-- | src/ui/levelmeter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/levelmeter.cpp b/src/ui/levelmeter.cpp index 52412de..906ef20 100644 --- a/src/ui/levelmeter.cpp +++ b/src/ui/levelmeter.cpp @@ -29,7 +29,7 @@ void LevelMeter::setLevel( float level ) if ( display > m_level ) m_level = m_level * 0.3f + display * 0.7f; // fast attack, not instant else { - m_level *= 0.94f; // slow decay ~1.5s to floor + m_level *= 0.925f; // slow decay ~1.5s to floor at 20Hz if ( m_level < 0.001f ) m_level = 0.0f; } update(); |
