lmms_math: C++11 updates

This commit is contained in:
Lukas W
2017-03-26 12:32:12 +02:00
parent 84d662409c
commit de3b344edd
4 changed files with 15 additions and 32 deletions

View File

@@ -148,7 +148,7 @@ void MultitapEchoControls::lpSamplesChanged( int begin, int end )
const float * samples = m_lpGraph.samples();
for( int i = begin; i <= end; ++i )
{
m_effect->m_lpFreq[i] = 20.0f * exp10f( samples[i] );
m_effect->m_lpFreq[i] = 20.0f * exp10( samples[i] );
}
m_effect->updateFilters( begin, end );
}

View File

@@ -1433,14 +1433,14 @@ void MonstroInstrument::updateSamplerate()
void MonstroInstrument::updateSlope1()
{
const float slope = m_env1Slope.value();
m_slope[0] = exp10f( slope * -1.0f );
m_slope[0] = exp10( slope * -1.0f );
}
void MonstroInstrument::updateSlope2()
{
const float slope = m_env2Slope.value();
m_slope[1] = exp10f( slope * -1.0f );
m_slope[1] = exp10( slope * -1.0f );
}