alsa: add api.alsa.period-num param

To configure the amount of periods. By default we use as many as
possible but it is now possible to force a value.

See #1473
This commit is contained in:
Wim Taymans 2021-12-17 16:09:52 +01:00
parent 8630b8846c
commit b476d6b503
2 changed files with 32 additions and 11 deletions

View file

@ -134,6 +134,7 @@ struct state {
struct spa_audio_info current_format;
uint32_t default_period_size;
uint32_t default_period_num;
uint32_t default_headroom;
uint32_t default_start_delay;
uint32_t default_format;