mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
resample: return the number of consumed samples
We need to return the number of consumed samples, even when we don't start from the first sample in the buffer. Add some more logging.
This commit is contained in:
parent
a44ee31abe
commit
dc01b294a2
4 changed files with 18 additions and 10 deletions
|
|
@ -26,12 +26,14 @@
|
|||
#define RESAMPLE_H
|
||||
|
||||
#include <spa/support/cpu.h>
|
||||
#include <spa/support/log.h>
|
||||
|
||||
struct resample {
|
||||
uint32_t cpu_flags;
|
||||
uint32_t channels;
|
||||
uint32_t i_rate;
|
||||
uint32_t o_rate;
|
||||
struct spa_log *log;
|
||||
|
||||
void (*free) (struct resample *r);
|
||||
void (*update_rate) (struct resample *r, double rate);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue