Skip to content

Instantly share code, notes, and snippets.

@savsgio
Last active March 8, 2018 09:09
Show Gist options
  • Save savsgio/e0bb901577d9966f5817d4c42390ab3e to your computer and use it in GitHub Desktop.
Save savsgio/e0bb901577d9966f5817d4c42390ab3e to your computer and use it in GitHub Desktop.
Improve PulseAudio quality of sound
# Start as daemon
daemonize = yes
allow-module-loading = yes
# Realtime optimization
high-priority = yes
realtime-scheduling = yes
realtime-priority = 9
# Scales the device-volume with the volume of the "loudest" application
flat-volumes = no
# Script file management
load-default-script-file = yes
default-script-file = /etc/pulse/default.pa
# Sample rate
resample-method = speex-float-9
default-sample-format = s24-32le
default-sample-rate = 192000
alternate-sample-rate = 176000
exit-idle-time = -1
# Optimized fragements for steam
default-fragments = 5
default-fragment-size-msec = 2
# Volume
deferred-volume-safety-margin-usec = 1
# EOF: /etc/pulse/daemon.conf
@savsgio
Copy link
Author

savsgio commented Mar 4, 2018

After customize daemon file, restart server with pulseaudio -k && pulseaudio --start

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment