• 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
5,900 (1.04/day)
Location
Nelson B.C. Canada
System Name Blacknet- System2 Blacknet 2
Processor Xeon 1680 v2- System2 Threadripper 1920x
Motherboard Asus P9X79 Deluxe- System2 Asrock Fatality x399 Professional Gaming
Cooling Noctua D14- System2 Noctua NH-U14 TR4-SP3 Dual 140mm fans
Memory 32 GBs DDR3 1866- System2 64GBS DDR4 3000
Video Card(s) GTX 980Ti - System2 Sapphire RX 570
Storage 4x SSDs = 1.750TB 2xStorage Drives=8TB - System2 Samsung 850 Pro 512GB, Samsung 860 Evo 500
Display(s) 2x 24" 1080 displays - System2 27" 1440 display
Case Antec 1200- System2 Some Nzxt case with soundproofing...
Audio Device(s) Asus Xonar U7 MKII
Power Supply EVGA 750 Watt- System2 EVGA 750 Watt
Mouse Logitech G900 Chaos Spectrum
Keyboard Ducky
Software Kubuntu 22.04, Windows 10
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,679 (0.45/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
5,900 (1.04/day)
Location
Nelson B.C. Canada
System Name Blacknet- System2 Blacknet 2
Processor Xeon 1680 v2- System2 Threadripper 1920x
Motherboard Asus P9X79 Deluxe- System2 Asrock Fatality x399 Professional Gaming
Cooling Noctua D14- System2 Noctua NH-U14 TR4-SP3 Dual 140mm fans
Memory 32 GBs DDR3 1866- System2 64GBS DDR4 3000
Video Card(s) GTX 980Ti - System2 Sapphire RX 570
Storage 4x SSDs = 1.750TB 2xStorage Drives=8TB - System2 Samsung 850 Pro 512GB, Samsung 860 Evo 500
Display(s) 2x 24" 1080 displays - System2 27" 1440 display
Case Antec 1200- System2 Some Nzxt case with soundproofing...
Audio Device(s) Asus Xonar U7 MKII
Power Supply EVGA 750 Watt- System2 EVGA 750 Watt
Mouse Logitech G900 Chaos Spectrum
Keyboard Ducky
Software Kubuntu 22.04, Windows 10
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.
 
Top