mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
add layout to format
This commit is contained in:
parent
1f73143d55
commit
30d8df7d25
5 changed files with 7 additions and 2 deletions
|
|
@ -56,10 +56,10 @@ spa_format_audio_raw_parse(const struct spa_pod *format,
|
|||
{
|
||||
return spa_pod_object_parse(format,
|
||||
":",type->format, "I", &info->format,
|
||||
":",type->layout, "i", &info->layout,
|
||||
":",type->rate, "i", &info->rate,
|
||||
":",type->channels, "i", &info->channels,
|
||||
":",type->flags, "?i", &info->flags,
|
||||
":",type->layout, "?i", &info->layout,
|
||||
":",type->channel_mask, "?i", &info->channel_mask, NULL);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -339,6 +339,7 @@ impl_node_port_enum_params(struct spa_node *node,
|
|||
"I", t->media_type.audio,
|
||||
"I", t->media_subtype.raw,
|
||||
":", t->format_audio.format, "I", this->current_format.info.raw.format,
|
||||
":", t->format_audio.layout, "i", this->current_format.info.raw.layout,
|
||||
":", t->format_audio.rate, "i", this->current_format.info.raw.rate,
|
||||
":", t->format_audio.channels, "i", this->current_format.info.raw.channels);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -304,6 +304,7 @@ static int port_get_format(struct spa_node *node,
|
|||
"I", t->media_type.audio,
|
||||
"I", t->media_subtype.raw,
|
||||
":", t->format_audio.format, "I", this->current_format.info.raw.format,
|
||||
":", t->format_audio.layout, "i", this->current_format.info.raw.layout,
|
||||
":", t->format_audio.rate, "i", this->current_format.info.raw.rate,
|
||||
":", t->format_audio.channels, "i", this->current_format.info.raw.channels);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue