Audio stuttering in Ubuntu 18.04

In my case (ubuntu 18.04 on alienware m15 laptop) the sound stuttered and glitched randomly with any sound source. Disabling the Wi-Fi is not an option for me, I have stumbled upon a blog post that suggests the problem is in pulseaudio's realtime-scheduling setting, solution from there helped me fix the problem:

  1. Turn off realtime scheduling - edit /etc/pulse/daemon.pa (I had /etc/pulse/daemon.conf):
; realtime-scheduling = yes
realtime-scheduling = no
  1. Restart pulseaudio:
pulseaudio --kill
pulseaudio --start

Original solution from https://fitzcarraldoblog.wordpress.com/2017/04/20/stuttering-audio-in-linux-pulseaudio-strikes-again/


This turns out to be a bug as suggested by GoodGuyNick in the question's comments. The workaround is to disable Wi-Fi when not in use.

Are you using laptop with Realtek RTL8188EE wireless network adapter? Because there is a bug in kernel which causes audio stutter if your wifi enabled and you are not connected to any wifi network.