resample: add resample.quality property

This commit is contained in:
Wim Taymans 2020-02-14 20:19:47 +01:00
parent 3fab544d3d
commit dbd483cb46

View file

@ -923,6 +923,8 @@ impl_init(const struct spa_handle_factory *factory,
this->resample.cpu_flags = spa_cpu_get_flags(this->cpu); this->resample.cpu_flags = spa_cpu_get_flags(this->cpu);
if (info != NULL) { 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) if ((str = spa_dict_lookup(info, "resample.peaks")) != NULL)
this->peaks = atoi(str); this->peaks = atoi(str);
if ((str = spa_dict_lookup(info, "factory.mode")) != NULL) { if ((str = spa_dict_lookup(info, "factory.mode")) != NULL) {