leaf/Src/leaf-effects.c
// read one sample from delay buffer, with linear interpolation

read one sample from delay buffer, with linear interpolation
read one sample from delay buffer with linear interpolation
static inline float read_sample(_tSOLAD* const w, float floatindex)
{
    int index = (int)floatindex;
    float fraction = floatindex - (float)index;
    float *buf = w->delaybuf;
    index &= (w->loopSize - 1);
    return (buf[index] + (fraction * (buf[index+1] - buf[index])));
}
static inline float read_sample ( _tSOLAD * const w , float floatindex ) { int index = ( int ) floatindex ; float fraction = floatindex - ( float ) index ; float * buf = w -> delaybuf ; index &= ( w -> loopSize - 1 ) ; return ( buf [ index ] + ( fraction * ( buf [ index + 1 ] - buf [ index ] ) ) ) ; }
read one sample from delay buffer, with linear interpolation
read one sample from delay buffer with linear interpolation