3 ms·
> It's not impossible that PulseAudio tries to play higher quality audio or simply uses the device differently. Pulseaudio mixes sound from several application
by vetinari 6y ago
> It's not impossible that PulseAudio tries to play higher quality audio or simply uses the device differently.
Pulseaudio mixes sound from several applications, unlike Alsa. Alsa just configures your soundcard for that one stream, Pulseaudio has no such luxury.
In order to mix relatively small buffers (because latency), it needs to do timing. If your soundcard has problem with timing (and many do!), you will get crackling. The good news is, that the problem with timing can be only at specific frequencies; in the past, I had a computer with Nvidia Ion and it did this with 44,1kHz audio. With 48kHz, everything was OK. So fixing the output at 48kHz by forcing Pulse to mix at this frequency fixed the crackling.
- frankling_ 6y agoAlsa has had software mixing via dmix since 2003. https://www.alsa-project.org/wiki/Main_Page_News https://www.alsa-project.org/wiki/Main_Page_News
- vetinari 6y agoYes, and it was off by default, because it had even bigger problems than PA.
- frankling_ 6y agoI'll skip the usual list of personal anecdotes about PA failing in surprising ways I've never seen in 15+ years of using Alsa, but I will say that since a few applications have started depending on it, "apt-get purge pulseaudio" seems to always be in my shell history.
- vetinari 6y agoYou know, that by doing that, you are trading short term gain for long term pain? Dmix for alsa was buggy, because just like PA, it didn't know about quirks of the hardware out in the field. And it stayed buggy, because nobody used it in return. Yes, PA was forced on users, but in the result the quirks were found, implemented and today, we all are better off. I didn't have any problem with PA since 2012 or so, but quite enjoyed the features it brought to the desktop.