popping/crackling/skipping audio when filtering input
- PipeWire version (
pipewire --version
):
pipewire
Compiled with libpipewire 1.0.3
Linked with libpipewire 1.0.3
-
Distribution and distribution version (
PRETTY_NAME
from/etc/os-release
):Fedora Linux 39 (Workstation Edition)
-
Desktop Environment:
Gnome 45.4
-
Kernel version (
uname -r
):6.7.4-200.fc39.x86_64
Description of Problem:
Using a filter on the microphone is causing popping/crackling output sound on the speakers/headphones with certain applications.
How Reproducible:
100%
Steps to Reproduce:
- Set up filter on on microphone
I am using a mono Microphone and libdeep_filter_ladspa filter with the following config file
cat ~/.config/pipewire/pipewire.conf.d/60-libdeep-filter.conf
context.modules = [
{ name = libpipewire-module-filter-chain
args = {
media.name = "deepfilter"
node.description = "NZXT-filtered"
filter.graph = {
nodes = [
{
type = ladspa
name = "DeepFilter Mono"
plugin = /home/sandor/.ladspa/libdeep_filter_ladspa.so
label = deep_filter_mono
control = {
"Attenuation Limit (dB)" 100
}
}
]
}
audio.rate = 48000
audio.channels = 2
audio.position = [FL]
capture.props = {
node.passive = true
target.object = "alsa_input.usb-NZXT_NZXT_USB_MIC_A00015_53_06-00.mono-fallback"
}
playback.props = {
audio.position = [ MONO ]
media.class = Audio/Source
}
}
}
]
- Set the filtered node as default input device in gnome settings
- Counter Strike 2 is easy to test with, cracking/popping can be heard in the menu after clicking around for 5-10 seconds, especially when going into settings.
If I change default.clock.min-quantum
from 32 to 512 in pipewire.conf
, then the popping/cracking is gone. Might be related to #3309 as a similar workaround does the job.
Actual Results:
cracking/popping sound
Expected Results:
there should be no effect of the input filter on the output
Additional Info (as attachments):
-
pw-dump > pw-dump.log
: