Skip to content

Instantly share code, notes, and snippets.

@cyruzin
Last active May 11, 2021 01:09
Show Gist options
  • Save cyruzin/6b2fe78830e3cced05293818e66fd0a5 to your computer and use it in GitHub Desktop.
Save cyruzin/6b2fe78830e3cced05293818e66fd0a5 to your computer and use it in GitHub Desktop.
Enable High Quality Audio on Linux
# ~/.config/pulse/daemon.conf
default-sample-format = float32le
default-sample-rate = 48000
alternate-sample-rate = 44100
default-sample-channels = 2
default-channel-map = front-left,front-right
default-fragments = 2
default-fragment-size-msec = 125
resample-method = soxr-vhq
remixing-produce-lfe=no
remixing-consume-lfe=no
high-priority = yes
nice-level = -11
realtime-scheduling = yes
realtime-priority = 9
rlimit-rtprio = 9
daemonize = no
avoid-resampling = true
# /usr/share/alsa/alsa.conf.d/99-pulseaudio-default.conf
pcm.!default {
type plug
slave.pcm hw
}
# use this one if you have mic issues
default-sample-format = s16le
default-sample-rate = 48000
alternate-sample-rate = 44100
default-sample-channels = 2
default-channel-map = front-left,front-right
default-fragments = 2
default-fragment-size-msec = 125
resample-method = src-sinc-best-quality
remixing-produce-lfe = no
remixing-consume-lfe = no
high-priority = yes
nice-level = -11
realtime-scheduling = yes
realtime-priority = 9
rlimit-rtprio = 9
daemonize = no
avoid-resampling = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment