mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-03 09:01:50 -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 "sink.h"
|
||||
#include "sample.h"
|
||||
#include "memblockq.h"
|
||||
#include "resampler.h"
|
||||
|
||||
struct sink_input {
|
||||
uint32_t index;
|
||||
|
|
@ -21,9 +22,12 @@ struct sink_input {
|
|||
uint32_t (*get_latency) (struct sink_input *i);
|
||||
|
||||
void *userdata;
|
||||
|
||||
struct memchunk resampled_chunk;
|
||||
struct resampler *resampler;
|
||||
};
|
||||
|
||||
struct sink_input* sink_input_new(struct sink *s, struct pa_sample_spec *spec, const char *name);
|
||||
struct sink_input* sink_input_new(struct sink *s, const char *name, const struct pa_sample_spec *spec);
|
||||
void sink_input_free(struct sink_input* i);
|
||||
|
||||
/* Code that didn't create the input stream should call this function to
|
||||
|
|
@ -33,7 +37,7 @@ void sink_input_kill(struct sink_input *i);
|
|||
uint32_t sink_input_get_latency(struct sink_input *i);
|
||||
char *sink_input_list_to_string(struct core *c);
|
||||
|
||||
|
||||
|
||||
int sink_input_peek(struct sink_input *i, struct memchunk *chunk);
|
||||
void sink_input_drop(struct sink_input *i, size_t length);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue