From dbd483cb4641d43424eaa073ccf0af2c286529e9 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 14 Feb 2020 20:19:47 +0100 Subject: [PATCH] resample: add resample.quality property --- spa/plugins/audioconvert/resample.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spa/plugins/audioconvert/resample.c b/spa/plugins/audioconvert/resample.c index f57741558..f67e09740 100644 --- a/spa/plugins/audioconvert/resample.c +++ b/spa/plugins/audioconvert/resample.c @@ -923,6 +923,8 @@ impl_init(const struct spa_handle_factory *factory, this->resample.cpu_flags = spa_cpu_get_flags(this->cpu); if (info != NULL) { + if ((str = spa_dict_lookup(info, "resample.quality")) != NULL) + this->props.quality = atoi(str); if ((str = spa_dict_lookup(info, "resample.peaks")) != NULL) this->peaks = atoi(str); if ((str = spa_dict_lookup(info, "factory.mode")) != NULL) {