Skip to content
Snippets Groups Projects
Commit 2bb995dd authored by Pascal Palenda's avatar Pascal Palenda
Browse files

Fix: hard filter switching

parent 8694a8e2
No related branches found
No related tags found
1 merge request!1Test: Add unit tests for UP convolution
......@@ -232,8 +232,15 @@ void ITAUPConvolution::ExchangeFilter( ITAUPFilter* pNewFilter, const int iExcha
// Nächstes Filter in die Austausch-Queue einfügen
FilterUpdate oUpdate;
oUpdate.pFilter = pNewFilter;
oUpdate.iExchangeMode = ( iExchangeFadingFunction == ITABase::FadingFunction::SWITCH ? (int)m_iExchangeFadingFunction : iExchangeFadingFunction );
oUpdate.iCrossfadeLength = ( iCrossfadeLength == ITABase::FadingFunction::SWITCH ? (int)m_iCrossfadeLength : iCrossfadeLength );
oUpdate.iExchangeMode = iExchangeFadingFunction;
if (iCrossfadeLength < 0)
{
oUpdate.iCrossfadeLength = 0;
}
else
{
oUpdate.iCrossfadeLength = iCrossfadeLength;
}
m_qExchangeFilters.push( oUpdate );
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment