filter-chain: add support to read from offset

So that the channel of the response file can be set
This commit is contained in:
Wim Taymans 2021-08-11 12:52:10 +02:00
parent be9ac91ce1
commit dbe9f02471

View file

@ -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;
}