Add pulse configs

This commit is contained in:
Salt 2020-09-16 11:54:48 -05:00
parent 4107d6f232
commit f2013a8ef0
3 changed files with 35 additions and 0 deletions

View File

@ -23,6 +23,8 @@
dest: "{{ item.dest }}" dest: "{{ item.dest }}"
mode: "{{ item.mode }}" mode: "{{ item.mode }}"
loop: loop:
- { src: "pulse-daemon.conf", dest: "/etc/pulse/daemon.conf", mode: "0644" }
- { src: "pulse-default.pa", dest: "/etc/pulse/default.pa", mode: "0644" }
- { src: "sshd_config", dest: "/etc/ssh/sshd_config", mode: "0644" } - { src: "sshd_config", dest: "/etc/ssh/sshd_config", mode: "0644" }
- { src: "nomouseaccel.conf", dest: "/etc/X11/xorg.conf.d/90-mouse-acceleration.conf", mode: "0644" } - { src: "nomouseaccel.conf", dest: "/etc/X11/xorg.conf.d/90-mouse-acceleration.conf", mode: "0644" }
- { src: "touchpad.conf", dest: "/etc/X11/xorg.conf.d/90-touchpad.conf", mode: "0644" } - { src: "touchpad.conf", dest: "/etc/X11/xorg.conf.d/90-touchpad.conf", mode: "0644" }

View File

@ -0,0 +1,23 @@
# Configuration file for the PulseAudio daemon. See pulse-daemon.conf(5) for
# more information. Default values are commented out. Use either ; or # for
# commenting.
# Bugfixes for my desktop's audio card
realtime-scheduling = no # Fixes a weird stutter issue
# Sanity
flat-volumes = no
# Audio Quality
default-sample-format = s32le # Pulse does 16bit sampling by default for some reason
default-sample-rate = 48000 # Higher sample rate than default
alternate-sample-rate = 44100
resample-method = speex-float-5 # Increase resampling quality
avoid-resampling = true
default-fragments = 5 # Pulse, why are you so friggin latent by default?
default-fragment-size-msec = 10
high-priority = yes
nice-level = -19

View File

@ -0,0 +1,10 @@
#!/usr/bin/pulseaudio -nF
.include /etc/pulse/default.pa
# Gets around a weird audio skipping bug on my desktop
.ifexists module-udev-detect.so
load-module module-udev-detect tsched=0
# My laptop gets sink suspension popping when using headphones
unload-module module-suspend-on-idle