mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-06-30 13:14:16 -04:00
pulse-server: add a pulse.zeroramp.gap property
Add a new pulse.zeroramp.gap property that will enable gap detection and fade-in/fade-out on gaps on playback streams. Make a rule to enable this on chrome, which does not do a cork/pause when a stream is paused but sends out silence. With the gap detection enabled, this allows the audioconvert to perform fades to avoid pops and clocks from sudden DC changes at the gaps. Fixes #4745
This commit is contained in:
parent
8971c488f3
commit
13c5e3c756
4 changed files with 26 additions and 1 deletions
|
|
@ -142,6 +142,7 @@ pulse.properties = {
|
|||
#pulse.max-sample-cache = 67108864 # max total sample cache size (64MB)
|
||||
#pulse.default.format = F32
|
||||
#pulse.default.position = [ FL FR ]
|
||||
#pulse.zeroramp.gap = 0 # detect silence of N samples and fade-in/out
|
||||
}
|
||||
|
||||
pulse.properties.rules = [
|
||||
|
|
@ -209,4 +210,13 @@ pulse.rules = [
|
|||
# matches = [ { application.process.binary = "Discord" } ]
|
||||
# actions = { quirks = [ block-source-volume ] }
|
||||
#}
|
||||
|
||||
{
|
||||
matches = [ { application.process.binary = "chrome" } ]
|
||||
actions = {
|
||||
update-props = {
|
||||
pulse.zeroramp.gap = 8
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue