export-source: allow more formats and channels

This commit is contained in:
Wim Taymans 2018-01-11 10:15:51 +01:00
parent f24ee7fd02
commit 79129f81a7

View file

@ -210,8 +210,8 @@ static int port_enum_formats(struct spa_node *node,
"I", d->type.media_type.audio,
"I", d->type.media_subtype.raw,
":", d->type.format_audio.format, "I", d->type.audio_format.S16,
":", d->type.format_audio.channels, "i", 2,
":", d->type.format_audio.rate, "i", 44100);
":", d->type.format_audio.channels, "iru", 2, 2, 1, INT32_MAX,
":", d->type.format_audio.rate, "iru", 44100, 2, 1, INT32_MAX);
(*index)++;