Initialize peak controller last sample with base value fix (Stable 1.2) (#4699)
This commit is contained in:
@@ -64,7 +64,7 @@ PeakControllerEffect::PeakControllerEffect(
|
||||
Effect( &peakcontrollereffect_plugin_descriptor, _parent, _key ),
|
||||
m_effectId( rand() ),
|
||||
m_peakControls( this ),
|
||||
m_lastSample( m_peakControls.m_baseModel.value() ), //sets the value to the Peak Controller's Base value (rather than 0 like in previous versions)
|
||||
m_lastSample( 0 ),
|
||||
m_autoController( NULL )
|
||||
{
|
||||
m_autoController = new PeakController( Engine::getSong(), this );
|
||||
|
||||
@@ -53,6 +53,7 @@ PeakControllerEffectControls( PeakControllerEffect * _eff ) :
|
||||
void PeakControllerEffectControls::loadSettings( const QDomElement & _this )
|
||||
{
|
||||
m_baseModel.loadSettings( _this, "base" );
|
||||
m_effect->m_lastSample = m_baseModel.value(); //Set initial Peak Controller output to Base
|
||||
m_amountModel.loadSettings( _this, "amount" );
|
||||
m_muteModel.loadSettings( _this, "mute" );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user