From 79129f81a7b5a0e27502bf078bb9ccfda7fa8c01 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 11 Jan 2018 10:15:51 +0100 Subject: [PATCH] export-source: allow more formats and channels --- src/examples/export-source.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/examples/export-source.c b/src/examples/export-source.c index f973942b6..7fc2d1d8d 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)++;