mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
resample: make quality configurable
This commit is contained in:
parent
f726a77385
commit
454e743d1a
5 changed files with 14 additions and 3 deletions
|
|
@ -28,6 +28,8 @@
|
|||
#include <spa/support/cpu.h>
|
||||
#include <spa/support/log.h>
|
||||
|
||||
#define RESAMPLE_DEFAULT_QUALITY 4
|
||||
|
||||
struct resample {
|
||||
uint32_t cpu_flags;
|
||||
uint32_t channels;
|
||||
|
|
@ -35,6 +37,7 @@ struct resample {
|
|||
uint32_t o_rate;
|
||||
struct spa_log *log;
|
||||
double rate;
|
||||
int quality;
|
||||
|
||||
void (*free) (struct resample *r);
|
||||
void (*update_rate) (struct resample *r, double rate);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue