mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2026-02-28 01:40:36 -05:00
resampler: Introduce a implementation specific struct
This struct holds all the implementation specific data in one place.
This commit is contained in:
parent
c5cd65d81e
commit
4bdfebee5c
2 changed files with 56 additions and 51 deletions
|
|
@ -28,6 +28,15 @@
|
|||
#include <pulsecore/memchunk.h>
|
||||
|
||||
typedef struct pa_resampler pa_resampler;
|
||||
typedef struct pa_resampler_impl pa_resampler_impl;
|
||||
|
||||
struct pa_resampler_impl {
|
||||
void (*free)(pa_resampler *r);
|
||||
void (*update_rates)(pa_resampler *r);
|
||||
void (*resample)(pa_resampler *r, const pa_memchunk *in, unsigned in_samples, pa_memchunk *out, unsigned *out_samples);
|
||||
void (*reset)(pa_resampler *r);
|
||||
void *data;
|
||||
};
|
||||
|
||||
typedef enum pa_resample_method {
|
||||
PA_RESAMPLER_INVALID = -1,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue