settings: add default.clock.quantum-floor property

Remove some of the hardcoded values (the absolute smallest buffer size,
independent on the sample rate) to a config option. Set it to the
default value of 4, like what it was before.

Change the hardcoded absolute lowest limit to 1 because anything else
does not make sense.

Enforce the quantum-floor when calculating the final graph quantum.

Fixes #3908
This commit is contained in:
Wim Taymans 2024-03-12 10:11:02 +01:00
parent e784de3933
commit 84af13a10b
6 changed files with 28 additions and 13 deletions

View file

@ -32,6 +32,7 @@ context.properties = {
#default.clock.min-quantum = 32
#default.clock.max-quantum = 2048
#default.clock.quantum-limit = 8192
#default.clock.quantum-floor = 4
#default.video.width = 640
#default.video.height = 480
#default.video.rate.num = 25

View file

@ -32,6 +32,7 @@ context.properties = {
#default.clock.min-quantum = 32
#default.clock.max-quantum = 2048
#default.clock.quantum-limit = 8192
#default.clock.quantum-floor = 4
#default.video.width = 640
#default.video.height = 480
#default.video.rate.num = 25