Skip to content

Instantly share code, notes, and snippets.

@nishantrpai
Last active June 3, 2021 13:44
Show Gist options
  • Select an option

  • Save nishantrpai/5197ae02be645ed5b4e66d3569ac2c07 to your computer and use it in GitHub Desktop.

Select an option

Save nishantrpai/5197ae02be645ed5b4e66d3569ac2c07 to your computer and use it in GitHub Desktop.
Fix Audio Output Issues For Ubuntu

Fix Audio Output Issues For Ubuntu

Note: Play a song before and after the process to understand the difference.

  • sudo cp /etc/pulse/daemon.conf /etc/pulse/daemon.conf.backup
  • sudo nano /etc/pulse/daemon.conf

Change key values

default-sample-format = float32ne
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 = speex-float-5 
enable-lfe-remixing = no
high-priority = yes
nice-level = -11
realtime-scheduling = yes
realtime-priority = 9
rlimit-rtprio = 9
rlimit-rttime = -1
daemonize = no
  • nano ~/.asoundrc

Paste

pcm.!default {
    type plug
    slave.pcm hw
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment