vumonitor/vumonitor.cc
/// Called on timer to cause Level to decay to 0 by a constant step (unless reset
/// by audio coming in.
///
Called on timer to cause Level to decay to 0 by a constant step (unless reset
by audio coming in.
Called on timer to cause Level to decay to 0 by a constant step ( unless reset by audio coming in .
void VU_monitor::do_fade()
{
    if (m_level <= 0.0) return;
    if (m_level > m_decay_rate) {
        m_level -= m_decay_rate;
    } else {
        m_level = 0.0;
    }
}
void VU_monitor :: do_fade ( ) { if ( m_level <= 0.0 ) return ; if ( m_level > m_decay_rate ) { m_level -= m_decay_rate ; } else { m_level = 0.0 ; } }
Called on timer to cause Level to decay to 0 by a constant step (unless reset
by audio coming in.
Called on timer to cause Level to decay to 0 by a constant step ( unless reset by audio coming in .