X-Git-Url: https://code.delx.au/pulseaudio/blobdiff_plain/647d49165373790d4a49240b69a30fb23f27aa3b..3b5868a27471ae93464527b2ab08c03eb610e14a:/src/pulsecore/remap.h diff --git a/src/pulsecore/remap.h b/src/pulsecore/remap.h index fcfe682e..3bd14036 100644 --- a/src/pulsecore/remap.h +++ b/src/pulsecore/remap.h @@ -45,4 +45,14 @@ typedef void (*pa_init_remap_func_t) (pa_remap_t *m); pa_init_remap_func_t pa_get_init_remap_func(void); void pa_set_init_remap_func(pa_init_remap_func_t func); +/* Check if remapping can be performed by just copying some or all input + * channels' data to output channels. Returns true and a table of input + * channel indices, or false otherwise. + * + * The table contains an entry for each output channels. Each table entry given + * either the input channel index to be copied, or -1 indicating that the + * output channel is not used and hence zero. + */ +bool pa_setup_remap_arrange(const pa_remap_t *m, int8_t arrange[PA_CHANNELS_MAX]); + #endif /* fooremapfoo */