mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-07 13:30:09 -05:00
settings: add an option to check quantum/rate in settings
Add an option to check if the rate and quantum configured with the settings metadata is in the allowed range. This is false by default, you can use metadata to set any rate/quantum but in a minimal controlled setup you might want to restrict this.
This commit is contained in:
parent
d2114c3f2e
commit
b3e7d2b72a
4 changed files with 28 additions and 4 deletions
|
|
@ -68,6 +68,8 @@ struct settings {
|
|||
unsigned int mem_warn_mlock:1;
|
||||
unsigned int mem_allow_mlock:1;
|
||||
unsigned int clock_power_of_two_quantum:1;
|
||||
unsigned int check_quantum:1;
|
||||
unsigned int check_rate:1;
|
||||
#define CLOCK_RATE_UPDATE_MODE_HARD 0
|
||||
#define CLOCK_RATE_UPDATE_MODE_SOFT 1
|
||||
int clock_rate_update_mode;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue