1 #ifndef foosampleutilhfoo
2 #define foosampleutilhfoo
8 #define PA_VOLUME_NORM (0x100)
9 #define PA_VOLUME_MUTE (0)
11 struct pa_memblock *pa_silence_memblock(struct pa_memblock* b, const struct pa_sample_spec *spec);
12 void pa_silence_memchunk(struct pa_memchunk *c, const struct pa_sample_spec *spec);
13 void pa_silence_memory(void *p, size_t length, const struct pa_sample_spec *spec);
16 struct pa_memchunk chunk;
21 size_t pa_mix(struct pa_mix_info channels[], unsigned nchannels, void *data, size_t length, const struct pa_sample_spec *spec, uint32_t volume);
23 void pa_volume_memchunk(struct pa_memchunk*c, const struct pa_sample_spec *spec, uint32_t volume);
25 uint32_t pa_volume_multiply(uint32_t a, uint32_t b);