Base interface, resampling interface. Linear sampler implementation, resampler implementation (NOT TESTED)