mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-14 06:59:53 -05:00
remap: support S32NE work format
So far PulseAudio only supported two different work formats: S16NE if it's sufficient to represent the input and output formats without loss of precision and FLOAT32NE in all other cases. For systems that use S32NE exclusively, this results in unnecessary conversions from S32NE to FLOAT32NE and back again. Add S32NE remap operations and make use of them (for the COPY and TRIVIAL resamplers) if both input and output format are S32NE. This avoids the back and forth conversions between S32NE and FLOAT32NE, significantly improving performance for those cases.
This commit is contained in:
parent
1e4fb61436
commit
034b77823a
7 changed files with 327 additions and 14 deletions
|
|
@ -55,6 +55,6 @@ void pa_set_init_remap_func(pa_init_remap_func_t func);
|
|||
bool pa_setup_remap_arrange(const pa_remap_t *m, int8_t arrange[PA_CHANNELS_MAX]);
|
||||
|
||||
void pa_set_remap_func(pa_remap_t *m, pa_do_remap_func_t func_s16,
|
||||
pa_do_remap_func_t func_float);
|
||||
pa_do_remap_func_t func_s32, pa_do_remap_func_t func_float);
|
||||
|
||||
#endif /* fooremapfoo */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue