mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
channelmix: don't pass channels around
We have this info in the channelmix structure.
This commit is contained in:
parent
76aaae2034
commit
b1ca470d99
5 changed files with 69 additions and 71 deletions
|
|
@ -72,8 +72,8 @@ struct channelmix {
|
|||
uint32_t lr4_info[SPA_AUDIO_MAX_CHANNELS];
|
||||
struct lr4 lr4[SPA_AUDIO_MAX_CHANNELS];
|
||||
|
||||
void (*process) (struct channelmix *mix, uint32_t n_dst, void * SPA_RESTRICT dst[n_dst],
|
||||
uint32_t n_src, const void * SPA_RESTRICT src[n_src], uint32_t n_samples);
|
||||
void (*process) (struct channelmix *mix, void * SPA_RESTRICT dst[],
|
||||
const void * SPA_RESTRICT src[], uint32_t n_samples);
|
||||
void (*set_volume) (struct channelmix *mix, float volume, bool mute,
|
||||
uint32_t n_channel_volumes, float *channel_volumes);
|
||||
void (*free) (struct channelmix *mix);
|
||||
|
|
@ -87,10 +87,9 @@ int channelmix_init(struct channelmix *mix);
|
|||
#define channelmix_set_volume(mix,...) (mix)->set_volume(mix, __VA_ARGS__)
|
||||
#define channelmix_free(mix) (mix)->free(mix)
|
||||
|
||||
#define DEFINE_FUNCTION(name,arch) \
|
||||
void channelmix_##name##_##arch(struct channelmix *mix, \
|
||||
uint32_t n_dst, void * SPA_RESTRICT dst[n_dst], \
|
||||
uint32_t n_src, const void * SPA_RESTRICT src[n_src], \
|
||||
#define DEFINE_FUNCTION(name,arch) \
|
||||
void channelmix_##name##_##arch(struct channelmix *mix, \
|
||||
void * SPA_RESTRICT dst[], const void * SPA_RESTRICT src[], \
|
||||
uint32_t n_samples);
|
||||
|
||||
#define CHANNELMIX_OPS_MAX_ALIGN 16
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue