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:
Wim Taymans 2019-04-02 23:06:46 +02:00
parent a44ee31abe
commit dc01b294a2
4 changed files with 18 additions and 10 deletions

View file

@ -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);