audioconvert: add simple and faster resampler

Add a sinc based resampler that, unlike speex, avoids memcpy and
works directly on the source data. It also allows for ssse3
optimizations and aligned loads. It will later switch to table
interpolation when doing variable rate.
This commit is contained in:
Wim Taymans 2019-03-26 12:58:26 +01:00
parent f29d14fcc8
commit 9c8913437b
10 changed files with 720 additions and 7 deletions

View file

@ -40,6 +40,7 @@
#include "resample-speex.h"
#include "resample-peaks.h"
#include "resample-native.h"
#define NAME "resample"
@ -155,6 +156,8 @@ static int setup_convert(struct impl *this,
if (this->monitor)
err = impl_peaks_init(&this->resample);
else if (1)
err = impl_native_init(&this->resample);
else
err = impl_speex_init(&this->resample);