mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
volume work
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@42 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
e31bac0257
commit
d571be6f51
12 changed files with 203 additions and 35 deletions
|
|
@ -8,16 +8,23 @@
|
|||
|
||||
extern struct pa_sample_spec default_sample_spec;
|
||||
|
||||
#define VOLUME_NORM (0x100)
|
||||
#define VOLUME_MUTE (0)
|
||||
|
||||
struct memblock *silence_memblock(struct memblock* b, struct pa_sample_spec *spec);
|
||||
void silence_memchunk(struct memchunk *c, struct pa_sample_spec *spec);
|
||||
void silence_memory(void *p, size_t length, struct pa_sample_spec *spec);
|
||||
|
||||
struct mix_info {
|
||||
struct memchunk chunk;
|
||||
uint8_t volume;
|
||||
uint32_t volume;
|
||||
void *userdata;
|
||||
};
|
||||
|
||||
size_t mix_chunks(struct mix_info channels[], unsigned nchannels, void *data, size_t length, struct pa_sample_spec *spec, uint8_t volume);
|
||||
size_t mix_chunks(struct mix_info channels[], unsigned nchannels, void *data, size_t length, struct pa_sample_spec *spec, uint32_t volume);
|
||||
|
||||
void volume_memchunk(struct memchunk*c, struct pa_sample_spec *spec, uint32_t volume);
|
||||
|
||||
uint32_t volume_multiply(uint32_t a, uint32_t b);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue