mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
optimize mixing code a bit. Add mixers for S32LE, S32BE, ULAW, ALAW and FLOAT32BE. Add volume adjusters for FLOAT32BE, ALAW, ULAW.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2041 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
c1985c2acc
commit
b0a68fd09f
4 changed files with 734 additions and 120 deletions
|
|
@ -39,7 +39,14 @@ typedef struct pa_mix_info {
|
|||
pa_memchunk chunk;
|
||||
pa_cvolume volume;
|
||||
void *userdata;
|
||||
void *internal; /* Used internally by pa_mix(), should not be initialised when calling pa_mix() */
|
||||
|
||||
/* The following fields are used internally by pa_mix(), should
|
||||
* not be initialised by the caller of pa_mix(). */
|
||||
void *ptr;
|
||||
union {
|
||||
int32_t i;
|
||||
float f;
|
||||
} linear[PA_CHANNELS_MAX];
|
||||
} pa_mix_info;
|
||||
|
||||
size_t pa_mix(
|
||||
|
|
@ -49,7 +56,7 @@ size_t pa_mix(
|
|||
size_t length,
|
||||
const pa_sample_spec *spec,
|
||||
const pa_cvolume *volume,
|
||||
int mute);
|
||||
pa_bool_t mute);
|
||||
|
||||
void pa_volume_memchunk(
|
||||
pa_memchunk*c,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue