Merge branch 'stable-0.4' into stable-0.4-new-fx-mixer

Conflicts:
	src/core/FxMixer.cpp
	src/gui/FxMixerView.cpp
This commit is contained in:
Tobias Doerffel
2014-01-17 19:56:51 +01:00
8 changed files with 913 additions and 272 deletions

View File

@@ -458,17 +458,18 @@ void FxMixerView::updateFaders()
const float fall_off = 1.2;
if( m->m_fxChannels[i]->m_peakLeft > opl )
{
m_fxChannelViews[i]->m_fader->setPeak_L(
m->m_fxChannels[i]->m_peakLeft );
m_fxChannelViews[i]->m_fader->setPeak_L( m->m_fxChannels[i]->m_peakLeft );
m->m_fxChannels[i]->m_peakLeft = 0;
}
else
{
m_fxChannelViews[i]->m_fader->setPeak_L( opl/fall_off );
}
if( m->m_fxChannels[i]->m_peakRight > opr )
{
m_fxChannelViews[i]->m_fader->setPeak_R(
m->m_fxChannels[i]->m_peakRight );
m_fxChannelViews[i]->m_fader->setPeak_R( m->m_fxChannels[i]->m_peakRight );
m->m_fxChannels[i]->m_peakRight = 0;
}
else
{