summaryrefslogtreecommitdiff
path: root/src/examples/export-source.c
diff options
context:
space:
mode:
authorWim Taymans <wtaymans@redhat.com>2018-01-11 10:15:51 +0100
committerWim Taymans <wtaymans@redhat.com>2018-01-11 10:15:51 +0100
commit79129f81a7b5a0e27502bf078bb9ccfda7fa8c01 (patch)
tree68bfc2946f407bcce11123f731c5200c9c838630 /src/examples/export-source.c
parentf24ee7fd027acc5a0a6e143e605916992fb0eb99 (diff)
export-source: allow more formats and channels
Diffstat (limited to 'src/examples/export-source.c')
-rw-r--r--src/examples/export-source.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/examples/export-source.c b/src/examples/export-source.c
index f973942b..7fc2d1d8 100644
--- a/src/examples/export-source.c
+++ b/src/examples/export-source.c
@@ -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)++;