Added linear interpolation , with help from Vesa

This commit is contained in:
dave
2014-11-18 20:38:39 +00:00
parent 932d7905ba
commit e0c10e030b
3 changed files with 28 additions and 14 deletions

View File

@@ -91,7 +91,7 @@ bool DelayEffect::processAudioBuffer( sampleFrame* buf, const fpp_t frames )
{
dryS[0] = buf[f][0];
dryS[1] = buf[f][1];
m_delay->setLength( length * m_lfo->tick() );
m_delay->setLength( ( float )length * ( float )m_lfo->tick() );
m_delay->tick( buf[f] );
buf[f][0] = ( d * dryS[0] ) + ( w * buf[f][0] );