pulse-server: increase min quantum values

The default values of 128/48000 seem to be too low as a good default.
Bump them to 256/48000.

Fixes #4875
This commit is contained in:
Wim Taymans 2025-11-06 12:52:48 +01:00
parent eec5eaf8df
commit 7bd65cfe93
3 changed files with 12 additions and 12 deletions

View file

@ -109,12 +109,12 @@ pulse.properties = {
]
#server.dbus-name = "org.pulseaudio.Server"
#pulse.allow-module-loading = true
#pulse.min.req = 128/48000 # 2.7ms
#pulse.min.req = 256/48000 # 5.3ms
#pulse.default.req = 960/48000 # 20 milliseconds
#pulse.min.frag = 128/48000 # 2.7ms
#pulse.min.frag = 256/48000 # 5.3ms
#pulse.default.frag = 96000/48000 # 2 seconds
#pulse.default.tlength = 96000/48000 # 2 seconds
#pulse.min.quantum = 128/48000 # 2.7ms
#pulse.min.quantum = 256/48000 # 5.3ms
#pulse.idle.timeout = 0 # don't pause after underruns
#pulse.default.format = F32
#pulse.default.position = [ FL FR ]

View file

@ -67,12 +67,12 @@
* ]
* #server.dbus-name = "org.pulseaudio.Server"
* #pulse.allow-module-loading = true
* #pulse.min.req = 128/48000 # 2.7ms
* #pulse.min.req = 256/48000 # 5.3ms
* #pulse.default.req = 960/48000 # 20 milliseconds
* #pulse.min.frag = 128/48000 # 2.7ms
* #pulse.min.frag = 256/48000 # 5.3ms
* #pulse.default.frag = 96000/48000 # 2 seconds
* #pulse.default.tlength = 96000/48000 # 2 seconds
* #pulse.min.quantum = 128/48000 # 2.7ms
* #pulse.min.quantum = 256/48000 # 5.3ms
* #pulse.default.format = F32
* #pulse.default.position = [ FL FR ]
* #pulse.idle.timeout = 0
@ -140,7 +140,7 @@
* ### Playback buffering options
*
*\code{.unparsed}
* pulse.min.req = 128/48000 # 2.7ms
* pulse.min.req = 256/48000 # 5.3ms
*\endcode
*
* The minimum amount of data to request for clients. The client requested
@ -166,7 +166,7 @@
* ### Record buffering options
*
*\code{.unparsed}
* pulse.min.frag = 128/48000 # 2.7ms
* pulse.min.frag = 256/48000 # 5.3ms
*\endcode
*
* The minimum allowed size of the capture buffer before it is sent to a client.
@ -184,7 +184,7 @@
* ### Scheduling options
*
*\code{.unparsed}
* pulse.min.quantum = 128/48000 # 2.7ms
* pulse.min.quantum = 256/48000 # 5.3ms
*\endcode
*
* The minimum quantum (buffer size in samples) to use for pulseaudio clients.

View file

@ -57,12 +57,12 @@
#include "volume.h"
#define DEFAULT_ALLOW_MODULE_LOADING "true"
#define DEFAULT_MIN_REQ "128/48000"
#define DEFAULT_MIN_REQ "256/48000"
#define DEFAULT_DEFAULT_REQ "960/48000"
#define DEFAULT_MIN_FRAG "128/48000"
#define DEFAULT_MIN_FRAG "256/48000"
#define DEFAULT_DEFAULT_FRAG "96000/48000"
#define DEFAULT_DEFAULT_TLENGTH "96000/48000"
#define DEFAULT_MIN_QUANTUM "128/48000"
#define DEFAULT_MIN_QUANTUM "256/48000"
#define DEFAULT_FORMAT "F32"
#define DEFAULT_POSITION "[ FL FR ]"
#define DEFAULT_IDLE_TIMEOUT "0"