alsa: add option to configure period-size

api.alsa.period-size can be set to something else than 1024 with
this config option.
This commit is contained in:
Wim Taymans 2021-01-05 12:44:10 +01:00
parent bad9a36a84
commit 87292432b7
4 changed files with 8 additions and 3 deletions

View file

@ -814,6 +814,8 @@ impl_init(const struct spa_handle_factory *factory,
spa_alsa_channel_from_name(p, len);
p += len + strspn(p+len, ",");
}
} else if (!strcmp(info->items[i].key, "api.alsa.period-size")) {
this->default_period_size = atoi(info->items[i].value);
}
}
return 0;