mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
add pa_ prefix to all identifiers.
fix downsampling/resampling add support for U8 samples git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@49 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
a8a5ab1c79
commit
e61c2dddb7
91 changed files with 1795 additions and 1643 deletions
|
|
@ -8,36 +8,36 @@
|
|||
#include "memblockq.h"
|
||||
#include "resampler.h"
|
||||
|
||||
struct sink_input {
|
||||
struct pa_sink_input {
|
||||
uint32_t index;
|
||||
|
||||
char *name;
|
||||
struct sink *sink;
|
||||
struct pa_sink *sink;
|
||||
struct pa_sample_spec sample_spec;
|
||||
uint32_t volume;
|
||||
|
||||
int (*peek) (struct sink_input *i, struct memchunk *chunk);
|
||||
void (*drop) (struct sink_input *i, size_t length);
|
||||
void (*kill) (struct sink_input *i);
|
||||
uint32_t (*get_latency) (struct sink_input *i);
|
||||
int (*peek) (struct pa_sink_input *i, struct pa_memchunk *chunk);
|
||||
void (*drop) (struct pa_sink_input *i, size_t length);
|
||||
void (*kill) (struct pa_sink_input *i);
|
||||
uint32_t (*get_latency) (struct pa_sink_input *i);
|
||||
|
||||
void *userdata;
|
||||
|
||||
struct memchunk resampled_chunk;
|
||||
struct resampler *resampler;
|
||||
struct pa_memchunk resampled_chunk;
|
||||
struct pa_resampler *resampler;
|
||||
};
|
||||
|
||||
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);
|
||||
struct pa_sink_input* pa_sink_input_new(struct pa_sink *s, const char *name, const struct pa_sample_spec *spec);
|
||||
void pa_sink_input_free(struct pa_sink_input* i);
|
||||
|
||||
/* Code that didn't create the input stream should call this function to
|
||||
* request destruction of it */
|
||||
void sink_input_kill(struct sink_input *i);
|
||||
void pa_sink_input_kill(struct pa_sink_input *i);
|
||||
|
||||
uint32_t sink_input_get_latency(struct sink_input *i);
|
||||
char *sink_input_list_to_string(struct core *c);
|
||||
uint32_t pa_sink_input_get_latency(struct pa_sink_input *i);
|
||||
char *pa_sink_input_list_to_string(struct pa_core *c);
|
||||
|
||||
int sink_input_peek(struct sink_input *i, struct memchunk *chunk);
|
||||
void sink_input_drop(struct sink_input *i, size_t length);
|
||||
int pa_sink_input_peek(struct pa_sink_input *i, struct pa_memchunk *chunk);
|
||||
void pa_sink_input_drop(struct pa_sink_input *i, size_t length);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue