Re:RDRAND on AMD Ryzen 9 5900X is flakey
by frankling_ on Monday January 11, 2021 @08:07PM
(#25740893)
Alsa has had software mixing via dmix since 2003.
Re:RDRAND on AMD Ryzen 9 5900X is flakey
by vetinari on Monday January 11, 2021 @09:00PM
(#25741312)
Yes, and it was off by default, because it had even bigger problems than PA.
Re:RDRAND on AMD Ryzen 9 5900X is flakey
by frankling_ on Tuesday January 12, 2021 @06:40AM
(#25745524)
I'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.
Re:RDRAND on AMD Ryzen 9 5900X is flakey
by vetinari on Tuesday January 12, 2021 @07:02AM
(#25745711)
You 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.
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.