Note that this instance of PulseAudio was not running on a ubuntu machine but on a OpenWRT based router (BT HomeHub 5) which is used as a sink for a ubuntu based machine - however since this post came high in the list of search results when I searched the crackling audio issue, there is a possibility that my addition may help somebody.
Sorry for bringing up an old post but I had problems similar to what was described here.
I was able to "fix" the crackling audio issues using the following lines in daemon.pa:
high-priority = yes fragment- size-msec = 10
nice-level = -11
realtime-scheduling = yes
default-fragments = 8
default-
Note that this instance of PulseAudio was not running on a ubuntu machine but on a OpenWRT based router (BT HomeHub 5) which is used as a sink for a ubuntu based machine - however since this post came high in the list of search results when I searched the crackling audio issue, there is a possibility that my addition may help somebody.