mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-17 08:56:49 -05:00
audioconvert: move some things around
To make it easier to add other implementations later. Improve selection of resampler function
This commit is contained in:
parent
bf3ebb67aa
commit
0d1cef6b3a
12 changed files with 172 additions and 131 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue