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
|
|
@ -204,6 +204,7 @@ static int port_enum_formats(struct spa_node *node,
|
|||
":", d->type.format_audio.format, "Ieu", d->type.audio_format.S16,
|
||||
SPA_POD_PROP_ENUM(2, d->type.audio_format.S16,
|
||||
d->type.audio_format.F32),
|
||||
":", d->type.format_audio.layout, "i", SPA_AUDIO_LAYOUT_NON_INTERLEAVED,
|
||||
":", d->type.format_audio.channels, "iru", 2,
|
||||
SPA_POD_PROP_MIN_MAX(1, INT32_MAX),
|
||||
":", d->type.format_audio.rate, "iru", 44100,
|
||||
|
|
@ -233,7 +234,8 @@ static int port_get_format(struct spa_node *node,
|
|||
d->t->param.idFormat, d->t->spa_format,
|
||||
"I", d->type.media_type.audio,
|
||||
"I", d->type.media_subtype.raw,
|
||||
":", d->type.format_audio.format, "I", d->format.format,
|
||||
":", d->type.format_audio.format, "I", d->format.format,
|
||||
":", d->type.format_audio.layout, "i", d->format.layout,
|
||||
":", d->type.format_audio.channels, "i", d->format.channels,
|
||||
":", d->type.format_audio.rate, "i", d->format.rate);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue