From dbe9f0247116c089bf7922745cb388633bfa3dc8 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 11 Aug 2021 12:52:10 +0200 Subject: [PATCH] filter-chain: add support to read from offset So that the channel of the response file can be set --- src/modules/module-filter-chain/builtin_plugin.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modules/module-filter-chain/builtin_plugin.c b/src/modules/module-filter-chain/builtin_plugin.c index 51c4f174c..35a03bc09 100644 --- a/src/modules/module-filter-chain/builtin_plugin.c +++ b/src/modules/module-filter-chain/builtin_plugin.c @@ -416,6 +416,10 @@ static void * convolver_instantiate(const struct fc_descriptor * Descriptor, if (spa_json_get_int(&it[1], &blocksize) <= 0) return NULL; } + else if (spa_streq(key, "offset")) { + if (spa_json_get_int(&it[1], &index) <= 0) + return NULL; + } else if (spa_json_next(&it[1], &val) < 0) break; }