mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-15 07:00:05 -05:00
Pass channelmask around and use it to name ports
Use the channel name in the port names of the dsp
This commit is contained in:
parent
7aae01fe15
commit
fb3379e587
9 changed files with 217 additions and 15 deletions
|
|
@ -39,7 +39,7 @@ spa_format_audio_raw_parse(const struct spa_pod *format, struct spa_audio_info_r
|
|||
":", SPA_FORMAT_AUDIO_rate, "i", &info->rate,
|
||||
":", SPA_FORMAT_AUDIO_channels, "i", &info->channels,
|
||||
":", SPA_FORMAT_AUDIO_flags, "?i", &info->flags,
|
||||
":", SPA_FORMAT_AUDIO_channelMask, "?i", &info->channel_mask, NULL);
|
||||
":", SPA_FORMAT_AUDIO_channelMask, "?l", &info->channel_mask, NULL);
|
||||
}
|
||||
|
||||
static inline struct spa_pod *
|
||||
|
|
|
|||
|
|
@ -140,7 +140,7 @@ struct spa_audio_info_raw {
|
|||
enum spa_audio_layout layout; /*< sample layout */
|
||||
uint32_t rate; /*< sample rate */
|
||||
uint32_t channels; /*< number of channels */
|
||||
uint32_t channel_mask; /*< channel mask */
|
||||
uint64_t channel_mask; /*< channel mask */
|
||||
};
|
||||
|
||||
#define SPA_AUDIO_INFO_RAW_INIT(...) (struct spa_audio_info_raw) { __VA_ARGS__ }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue