• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

Get rid of audio resampling in Pulseaudio

johnspack

Here For Good!
Joined
Oct 6, 2007
Messages
6,018 (0.97/day)
Location
Nelson B.C. Canada
System Name System2 Blacknet , System1 Blacknet2
Processor System2 Threadripper 1920x, System1 2699 v3
Motherboard System2 Asrock Fatality x399 Professional Gaming, System1 Asus X99-A
Cooling System2 Noctua NH-U14 TR4-SP3 Dual 140mm fans, System1 AIO
Memory System2 64GBS DDR4 3000, System1 32gbs DDR4 2400
Video Card(s) System2 GTX 980Ti System1 GTX 970
Storage System2 4x SSDs + NVme= 2.250TB 2xStorage Drives=8TB System1 3x SSDs=2TB
Display(s) 1x27" 1440 display 1x 24" 1080 display
Case System2 Some Nzxt case with soundproofing...
Audio Device(s) Asus Xonar U7 MKII
Power Supply System2 EVGA 750 Watt, System1 XFX XTR 750 Watt
Mouse Logitech G900 Chaos Spectrum
Keyboard Ducky
Software Archlinux, Manjaro, Win11 Ent 24h2
Benchmark Scores It's linux baby!
I always thought you could only set 2 sample rates in pulseaudio. Nope. First of all you want to set default to 44.1 so there is no resampling for regular flacs and cds. Then set alternate to 48 to cover dvd quality.
Then set "avoid resampling" to true. If you have a modern dac made in the last 5 years... it will have auto resolution switching. After setting this, resampling method should be "copy" for everything from 44.1
to 192 and beyond. If it must resample, set to soxr-vhq. Set "default-sample-format = s24le or s32le depending on what your dac can do. Setting higher won't degrade performance. This will give you the best
audio experience. You need to edit /etc/pulse/daemon.conf.
resample-method = soxr-vhq
avoid-resampling = true
; enable-remixing = yes
; remixing-use-all-sink-channels = yes
; remixing-produce-lfe = no
; remixing-consume-lfe = no
; lfe-crossover-freq = 0

; flat-volumes = no

; rescue-streams = yes

; 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 = s24le
default-sample-rate = 44100
alternate-sample-rate = 48000
; default-sample-channels = 2
; default-channel-map = front-left,front-right

You will need to restart pulse, or reboot after this.

Also to get more control over your audio, install PulseEffects. It will show you in real time how your audio is being produced, and you can apply many effects.
effects.png
 
Last edited:
Joined
Dec 23, 2012
Messages
1,715 (0.40/day)
Location
Somewhere Over There!
System Name Gen2
Processor Ryzen R9 5950X
Motherboard Asus ROG Crosshair Viii Hero Wifi
Cooling Lian Li 360 Galahad
Memory G.Skill Trident Z RGB 64gb @ 3600 Mhz CL14-13-13-24 1T @ 1.45V
Video Card(s) Sapphire RX 6900 XT Nitro+
Storage Seagate 520 1TB + Samsung 970 Evo Plus 1TB + lots of HDD's
Display(s) Samsung Odyssey G7
Case Lian Li PC-O11D XL White
Audio Device(s) Onboard
Power Supply Super Flower Leadex SE Platinum 1000W
Mouse Xenics Titan GX Air Wireless
Keyboard Kemove Snowfox 61
Software Main: Gentoo+Arch + Windows 11
Benchmark Scores Have tried but can't beat the leaders :)
im not an expert but have you tried to use pipewire instead of pulseaudio?

While its true that pipewire is not mature as pulseaudio but my system is sounding better with Pipewire. But I also have pulseeffects installed and uses some tweaks. And with helvum installed, you could have a visual routes on hows the processing done
 

johnspack

Here For Good!
Joined
Oct 6, 2007
Messages
6,018 (0.97/day)
Location
Nelson B.C. Canada
System Name System2 Blacknet , System1 Blacknet2
Processor System2 Threadripper 1920x, System1 2699 v3
Motherboard System2 Asrock Fatality x399 Professional Gaming, System1 Asus X99-A
Cooling System2 Noctua NH-U14 TR4-SP3 Dual 140mm fans, System1 AIO
Memory System2 64GBS DDR4 3000, System1 32gbs DDR4 2400
Video Card(s) System2 GTX 980Ti System1 GTX 970
Storage System2 4x SSDs + NVme= 2.250TB 2xStorage Drives=8TB System1 3x SSDs=2TB
Display(s) 1x27" 1440 display 1x 24" 1080 display
Case System2 Some Nzxt case with soundproofing...
Audio Device(s) Asus Xonar U7 MKII
Power Supply System2 EVGA 750 Watt, System1 XFX XTR 750 Watt
Mouse Logitech G900 Chaos Spectrum
Keyboard Ducky
Software Archlinux, Manjaro, Win11 Ent 24h2
Benchmark Scores It's linux baby!
I am probably going to play with pipewire as it is included with 21.04, but requires a bit more setup to fully install. Should be able to switch between the 2 servers. It should be more mature by
21.10 release.... maybe.
 
Joined
Jul 15, 2022
Messages
943 (1.14/day)
In my experience, there is no noticeable difference between PipeWire and PulseAudio.
On most hardware OSS produces better sound than ALSA on the analog connection. On my hardware I cannot reproduce the sound quality of OpenBSD on Linux.
OpenBSD demo with F&D F550X https://drive.google.com/file/d/1pb2xf5wOCeR7tj11QotK4q2cMxClyKlh/view
The above demo are (all in one) '69 EUR speakers' (price for newpurchase). I do not use a sound card to achieve this sound quality.
There is hardware on which Linux can achieve good sound. For example many Dell laptops.

The above link is how OpenBSD sounds on budget hardware. On mid-range setups, it obviously sounds better.
Here is an audio demo of how OpenBSD sounds on a mid-range sound system.
It is similar to windows10/11 + expensive sound card + high-end audio amp/speakers.
 
Top