mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
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:
parent
bad9a36a84
commit
87292432b7
4 changed files with 8 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue