How do I get rid of the high-pass filter in Pulseaudio

Unofficial support for the KXStudio Linux distribution and applications.
More info at http://kxstudio.linuxaudio.org/

Moderators: MattKingUSA, khz

Post Reply
Cyler
Established Member
Posts: 6
Joined: Tue Apr 29, 2014 12:46 am

How do I get rid of the high-pass filter in Pulseaudio

Post by Cyler »

When anything goes through PulseAudio, the audio is high-passed in my monitors. (2 different pairs, both intended for 2 channel stereo without sub)

I cannot get rid of it by disabling lfe-remixing or setting lfe-crossover-freq to 0 in /etc/pulse/pulse-daemon.conf.

Code: Select all

# This file is part of PulseAudio.
#
# PulseAudio is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# PulseAudio is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.

## Configuration file for the PulseAudio daemon. See pulse-daemon.conf(5) for
## more information. Default values are commented out.  Use either ; or # for
## commenting.

; daemonize = no
; fail = yes
; allow-module-loading = yes
; allow-exit = yes
; use-pid-file = yes
; system-instance = no
; local-server-type = user
; enable-shm = yes
; shm-size-bytes = 0 # setting this 0 will use the system-default, usually 64 MiB
; lock-memory = no
; cpu-limit = no

; high-priority = yes
; nice-level = -11

; realtime-scheduling = yes
; realtime-priority = 5

; exit-idle-time = 20
; scache-idle-time = 20

; dl-search-path = (depends on architecture)

; load-default-script-file = yes
; default-script-file = /etc/pulse/default.pa

; log-target = auto
; log-level = notice
; log-meta = no
; log-time = no
; log-backtrace = 0

resample-method = speex-float-5
enable-remixing = no
enable-lfe-remixing = no
lfe-crossover-freq = 0

flat-volumes = no

; rlimit-fsize = -1
; rlimit-data = -1
; rlimit-stack = -1
; rlimit-core = -1
; rlimit-as = -1
; rlimit-rss = -1
; rlimit-nproc = -1
; rlimit-nofile = 256
; rlimit-memlock = -1
; rlimit-locks = -1
; rlimit-sigpending = -1
; rlimit-msgqueue = -1
; rlimit-nice = 31
; rlimit-rtprio = 9
; rlimit-rttime = 200000

default-sample-format = s16le
default-sample-rate = 44100
alternate-sample-rate = 48000
default-sample-channels = 2
default-channel-map = front-left,front-right

; default-fragments = 4
; default-fragment-size-msec = 25

; enable-deferred-volume = yes
deferred-volume-safety-margin-usec = 1
; deferred-volume-extra-delay-usec = 0
I'm on Xubuntu 16.04 with KXStudio repos. PulseAudio is started through Cadence at startup.

PulseAudio JACK Sink always connects to my interface (NI Komplete Audio 6) in a 5.1 setup. I suppose the regular /etc/pulse/pulse-daemon.conf does not apply and there is a script detecting 6 ports on my interface and then sets it up as a 5.1 system by default. If that's the case, can that behaviour be altered somehow?
User avatar
sadko4u
Established Member
Posts: 986
Joined: Mon Sep 28, 2015 9:03 pm
Has thanked: 2 times
Been thanked: 359 times

Re: How do I get rid of the high-pass filter in Pulseaudio

Post by sadko4u »

Maybe not to use pulseaudio?
LSP (Linux Studio Plugins) Developer and Maintainer.
CrocoDuck
Established Member
Posts: 1133
Joined: Sat May 05, 2012 6:12 pm
Been thanked: 17 times

Re: How do I get rid of the high-pass filter in Pulseaudio

Post by CrocoDuck »

Cyler wrote:PulseAudio JACK Sink always connects to my interface (NI Komplete Audio 6) in a 5.1 setup. I suppose the regular /etc/pulse/pulse-daemon.conf does not apply and there is a script detecting 6 ports on my interface and then sets it up as a 5.1 system by default. If that's the case, can that behaviour be altered somehow?
Configuration files in your home directory are used first (see https://wiki.archlinux.org/index.php/Pu ... tion_files). Check whether you have a conf file in

Code: Select all

~/.config/pulse
That has another setup.

Otherwise you can have a look at whether there is some EQ running:

https://wiki.archlinux.org/index.php/Pu ... #Equalizer
Cyler
Established Member
Posts: 6
Joined: Tue Apr 29, 2014 12:46 am

Re: How do I get rid of the high-pass filter in Pulseaudio

Post by Cyler »

Thanks for the reply guys!

Not using Pulseaudio at all is what I did for years, but more and more programs do not work without it. The main reasons for me to not kick Pulseaudio are Firefox and Skype. I was quite chuffed initially when after upgrading to 16.04 everything just worked, until I noticed the HPF.

pulse-daemon.conf and default.pa in ~/.config/pulse/ and /etc/pulse/ are indentical.

My guess is that Cadence sets up PA Jack Sink and because my interface has 6 outputs, sets it up as a 5.1 system by default.
CrocoDuck
Established Member
Posts: 1133
Joined: Sat May 05, 2012 6:12 pm
Been thanked: 17 times

Re: How do I get rid of the high-pass filter in Pulseaudio

Post by CrocoDuck »

Cyler wrote:Not using Pulseaudio at all is what I did for years, but more and more programs do not work without it. The main reasons for me to not kick Pulseaudio are Firefox and Skype. I was quite chuffed initially when after upgrading to 16.04 everything just worked, until I noticed the HPF.
Same here. PulseAudio just gets pulled in by Gnome. Firefox as distributed by Arch Linux had JACK outputs at some point, but there has been pressure for reasons I don't completely agree with (see story here: https://bugs.archlinux.org/task/52183). I think that to make them appear again one has to build from source with a certain configuration or flags. Not bothered enough, but sad about it. I almost cried when I saw Firefox outputting directly to JACK... next update it was gone.

Well, long story short: you could theoretically build Firefox from source to work directly with JACK, and then use Skype online from Firefox. Maybe that could work.

Anyway, for the problem at hand now, have a look at this:

https://wiki.archlinux.org/index.php/Pu ... rough_JACK

I would suggest to check pulseaudio configuration in Cadence and have a look at pavucontrol. Maybe the 5.1 controls can be accessed there.
User avatar
nikgnomicradio
Established Member
Posts: 109
Joined: Wed Feb 07, 2018 9:31 pm
Has thanked: 1 time
Been thanked: 7 times
Contact:

Re: How do I get rid of the high-pass filter in Pulseaudio

Post by nikgnomicradio »

Cyler wrote: pulse-daemon.conf and default.pa in ~/.config/pulse/ and /etc/pulse/ are indentical.

My guess is that Cadence sets up PA Jack Sink and because my interface has 6 outputs, sets it up as a 5.1 system by default.
configuration files in ~/.config/pulse usually have priority over /etc/pulse.
Pulseaudio man page explains this more, and security reasons for not using Pulseaudio modes that don't read from home file configuration

to change Pulseaudio Jack sink to only use 2 channels
Open ~/.config/pulse/default.pa in text editor and find the line:
load-module module-jackdbus-detect
and change it to
load-module module-jackdbus-detect channels=2
Pulseaudio Jack Sink will then load only 2 channel stereo

If you want to use your interface for 3 stereo outputs rather than 5.1
change JACK options to only load 2 channels for output
then add the extra stereo channels with alsa_in commands
If JACK is configured to 2 channels not 5.1, the jackdbus configuration is not needed. Pulseaudio will only load a 2 channel sink matching the JACK system connections
Cyler
Established Member
Posts: 6
Joined: Tue Apr 29, 2014 12:46 am

Re: How do I get rid of the high-pass filter in Pulseaudio

Post by Cyler »

Thanks again guys!

~/.config/pulse/default.pa is already amended to set up the jack sink with 2 channels as described. I guess I need to go with the manual sink configuration instead of letting Cadence handle it. https://wiki.archlinux.org/index.php/Pu ... rough_JACK

The way it looks to me is that Cadence does not use the regular config files at all, instead this code here configures the jack sink automatically: /usr/share/cadence/src/cadence_aloop_daemon.py
Post Reply