From 71028f184d7ff5d002faecb288116e90593956ef Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 12 Jan 2022 17:58:14 +0100 Subject: [PATCH] settings: set the max-quantum to 2048 Allow an app to request up to 2048/48000 quantum. This will be scaled with the selected sample rate so if the graph changes to 96000, the quantum will be scaled to 4096. It will scale up to the hard limit of quantum_limit. See #1931 --- src/daemon/pipewire.conf.in | 2 +- src/pipewire/settings.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/daemon/pipewire.conf.in b/src/daemon/pipewire.conf.in index 77b19b290..00165c1cc 100644 --- a/src/daemon/pipewire.conf.in +++ b/src/daemon/pipewire.conf.in @@ -25,7 +25,7 @@ context.properties = { #default.clock.allowed-rates = [ 48000 ] #default.clock.quantum = 1024 #default.clock.min-quantum = 32 - #default.clock.max-quantum = 8192 + #default.clock.max-quantum = 2048 #default.clock.quantum-limit = 8192 #default.video.width = 640 #default.video.height = 480 diff --git a/src/pipewire/settings.c b/src/pipewire/settings.c index 6f8a7d5e4..ca58af747 100644 --- a/src/pipewire/settings.c +++ b/src/pipewire/settings.c @@ -43,7 +43,7 @@ #define DEFAULT_CLOCK_RATE 48000u #define DEFAULT_CLOCK_QUANTUM 1024u #define DEFAULT_CLOCK_MIN_QUANTUM 32u -#define DEFAULT_CLOCK_MAX_QUANTUM 8192u +#define DEFAULT_CLOCK_MAX_QUANTUM 2048u #define DEFAULT_CLOCK_QUANTUM_LIMIT 8192u #define DEFAULT_CLOCK_POWER_OF_TWO_QUANTUM true #define DEFAULT_VIDEO_WIDTH 640