mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
add resampling
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@45 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
13b35a2489
commit
741aa44ffc
26 changed files with 251 additions and 115 deletions
|
|
@ -6,6 +6,7 @@
|
|||
#include "source.h"
|
||||
#include "sample.h"
|
||||
#include "memblockq.h"
|
||||
#include "resampler.h"
|
||||
|
||||
struct source_output {
|
||||
uint32_t index;
|
||||
|
|
@ -14,17 +15,21 @@ struct source_output {
|
|||
struct source *source;
|
||||
struct pa_sample_spec sample_spec;
|
||||
|
||||
void (*push)(struct source_output *o, struct memchunk *chunk);
|
||||
void (*push)(struct source_output *o, const struct memchunk *chunk);
|
||||
void (*kill)(struct source_output* o);
|
||||
|
||||
struct resampler* resampler;
|
||||
|
||||
void *userdata;
|
||||
};
|
||||
|
||||
struct source_output* source_output_new(struct source *s, struct pa_sample_spec *spec, const char *name);
|
||||
struct source_output* source_output_new(struct source *s, const char *name, const struct pa_sample_spec *spec);
|
||||
void source_output_free(struct source_output* o);
|
||||
|
||||
void source_output_kill(struct source_output*o);
|
||||
|
||||
char *source_output_list_to_string(struct core *c);
|
||||
|
||||
void source_output_push(struct source_output *o, const struct memchunk *chunk);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue