mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-16 08:56:45 -05:00
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:
parent
f29d14fcc8
commit
9c8913437b
10 changed files with 720 additions and 7 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue