PulseAudio, Flash and Static

So recently I’ve been experiencing some pretty terrible static during audio playback, and a little bit of research seems to suggest it has something to do with the default buffer sizes used by Chrome and PulseAudio. It appears that recent builds of Chrome use a much smaller buffer size of 512 while older builds used 2048. You can restore this behavior by passing the –audio-buffer-size-2048 parameter to the executable. (Source: https://code.google.com/p/chromium/issues/detail?id=178626) However as my issue was system wide (mplayer, mpd also experienced the same thing), that pointed to PulseAudio. It also appears PulseAudio sets some pretty poor default buffer and fragment sizes as well. Those can be remedied by setting the correct values in /etc/pulse/daemon.conf. The values used for default-fragments and default-fragment-size-msec should match the buffer sizes used by your sound card. Those can be viewed by starting PulseAudio with very verbose logging enabled. (Source: http://forums.linuxmint.com/viewtopic.php?f=42&t=44862)

Originally published at www.intervigil.net.

Like what you read? Give Ethan Chen a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.