mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
pulse-server: disable idle.timeout by default
Only enable pulse.idle.timeout for selected applications (speech-dispatcher) and let other applications be. We can also lower the minreq and min-quantum of speech-dispatcher now. Fixes #2880
This commit is contained in:
parent
a6f8790ece
commit
45235172c8
2 changed files with 6 additions and 6 deletions
|
|
@ -90,7 +90,7 @@ pulse.properties = {
|
||||||
#pulse.default.frag = 96000/48000 # 2 seconds
|
#pulse.default.frag = 96000/48000 # 2 seconds
|
||||||
#pulse.default.tlength = 96000/48000 # 2 seconds
|
#pulse.default.tlength = 96000/48000 # 2 seconds
|
||||||
#pulse.min.quantum = 256/48000 # 5ms
|
#pulse.min.quantum = 256/48000 # 5ms
|
||||||
#pulse.idle.timeout = 5 # pause after 5s of underruns
|
#pulse.idle.timeout = 0 # don't pause after underruns
|
||||||
#pulse.default.format = F32
|
#pulse.default.format = F32
|
||||||
#pulse.default.position = [ FL FR ]
|
#pulse.default.position = [ FL FR ]
|
||||||
# These overrides are only applied when running in a vm.
|
# These overrides are only applied when running in a vm.
|
||||||
|
|
@ -137,12 +137,12 @@ pulse.rules = [
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
# speech dispatcher asks for too small latency and then underruns.
|
# speech dispatcher asks for too small latency and then underruns.
|
||||||
matches = [ { application.name = "~speech-dispatcher*" } ]
|
matches = [ { application.name = "~speech-dispatcher.*" } ]
|
||||||
actions = {
|
actions = {
|
||||||
update-props = {
|
update-props = {
|
||||||
pulse.min.req = 1024/48000 # 21ms
|
pulse.min.req = 512/48000 # 10.6ms
|
||||||
pulse.min.quantum = 1024/48000 # 21ms
|
pulse.min.quantum = 512/48000 # 10.6ms
|
||||||
#pulse.idle.timeout = 0
|
pulse.idle.timeout = 5 # pause after 5 seconds of underrun
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -85,7 +85,7 @@
|
||||||
#define DEFAULT_MIN_QUANTUM "256/48000"
|
#define DEFAULT_MIN_QUANTUM "256/48000"
|
||||||
#define DEFAULT_FORMAT "F32"
|
#define DEFAULT_FORMAT "F32"
|
||||||
#define DEFAULT_POSITION "[ FL FR ]"
|
#define DEFAULT_POSITION "[ FL FR ]"
|
||||||
#define DEFAULT_IDLE_TIMEOUT "5"
|
#define DEFAULT_IDLE_TIMEOUT "0"
|
||||||
|
|
||||||
#define MAX_FORMATS 32
|
#define MAX_FORMATS 32
|
||||||
/* The max amount of data we send in one block when capturing. In PulseAudio this
|
/* The max amount of data we send in one block when capturing. In PulseAudio this
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue