Refactor resample module
Refactor resample module

* Process data in smaller blocks to reduce static memory allocation
* Duplicate samples into the resampler when necessary to precharge
  the delay through the resampler. This avoids sending silent
  samples in some cases
* Save extra samples that result from the resampler and send them
  out with the next frame. This avoids discarding samples in some
  cases
* Allocate a significantly smaller static buffer to reduce the
  filter memory footprint
* Use the highest quality resampler algorithm

For the timeremap filter, these changes result in significantly
less audio artifacts ("ticks") in the output.

mltframework/mlt,mltframework/mlt,j-b-m/mlt,j-b-m/mlt,j-b-m/mlt,mltframework/mlt,j-b-m/mlt,j-b-m/mlt,mltframework/mlt,j-b-m/mlt,j-b-m/mlt,mltframework/mlt,mltframework/mlt,mltframework/mlt,mltframework/mlt,mltframework/mlt,j-b-m/mlt,j-b-m/mlt,j-b-m/mlt,mltframework/mlt