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:
Peter Meerwald 2013-02-13 17:27:08 +01:00 committed by Tanu Kaskinen
parent c1cac8d82b
commit 7758076d9c
2 changed files with 84 additions and 82 deletions

View file

@ -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);