mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-10 13:29:58 -05:00
mix: Change end pointer to length parameter in mixing function
similar to volume functions, simplifies leftover samples handling for SIMD'd code path use concrete pointer type (e.g. int16_t*) instead of void*, saves several casts Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
This commit is contained in:
parent
c1cac8d82b
commit
7758076d9c
2 changed files with 84 additions and 82 deletions
|
|
@ -51,7 +51,7 @@ size_t pa_mix(
|
|||
const pa_cvolume *volume,
|
||||
pa_bool_t mute);
|
||||
|
||||
typedef void (*pa_do_mix_func_t) (pa_mix_info streams[], unsigned nstreams, unsigned channels, void *data, void *end);
|
||||
typedef void (*pa_do_mix_func_t) (pa_mix_info streams[], unsigned nstreams, unsigned channels, void *data, unsigned length);
|
||||
|
||||
pa_do_mix_func_t pa_get_mix_func(pa_sample_format_t f);
|
||||
void pa_set_mix_func(pa_sample_format_t f, pa_do_mix_func_t func);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue