audioconvert: move some things around

To make it easier to add other implementations later.
Improve selection of resampler function
This commit is contained in:
Wim Taymans 2020-04-03 17:46:04 +02:00
parent bf3ebb67aa
commit 0d1cef6b3a
12 changed files with 172 additions and 131 deletions

View file

@ -40,9 +40,6 @@
#include "resample.h"
#include "resample-peaks.h"
#include "resample-native.h"
#define NAME "resample"
#define DEFAULT_RATE 48000
@ -166,9 +163,9 @@ static int setup_convert(struct impl *this,
this->resample.quality = this->props.quality;
if (this->peaks)
err = impl_peaks_init(&this->resample);
err = resample_peaks_init(&this->resample);
else
err = impl_native_init(&this->resample);
err = resample_native_init(&this->resample);
return err;
}