News for hackers. Stuff that matters.
Re:PulseAudio has been removed from dports by microcolonel on Monday August 22, 2016 @12:38PM (#12337515)
ALSA is not an alternative to Pulseaudio.

If your audio chipset doesn't have a hardware mixer, and about of half of laptop chipsets don't, then you can't play more than one stream at a time. If you have an array microphone, the only way it'll work at all is with Pulseaudio. If you want Bluetooth audio, only Pulseaudio bothers to support it.

Pulseaudio uses ALSA anyway (and on DFBSD it uses OSS instead); it's not a replacement, it is the only unix sound server other than Apple's(and maybe OpenBSD's) which actually works. ALSA is an audio device driver ABI; it can only expose what your chipset supports in hardware.

The problem of Pulseaudio spinning, at least when it used to happen on Linux, is due to issues in the individual audio device drivers. The reason this is a big problem is that Pulseaudio needs to run at a low `nice` value in the scheduler, or you will get buffer underruns (which sound like pops and clicks). Unfortunately this means that if Pulseaudio goes into a hot loop, it will consume all of the available CPU resources until the loop breaks. This problem can be mitigated by running pulseaudio with a control group to limit CPU time (as is done with systemd on many Linux distros). Unfortunately, DragonFlyBSD doesn't have the same thing configured, assuming their kernel supports it, so you get 100% CPU spinning.

Furthermore, DragonFlyBSD doesn't have ALSA; they have OSS.

Re:PulseAudio has been removed from dports by amyjess on Monday August 22, 2016 @12:56PM (#12337658)
> If your audio chipset doesn't have a hardware mixer, and about of half of laptop chipsets don't, then you can't play more than one stream at a time.

Not true. ALSA with dmix can do software mixing, and dmix is enabled by default.

I also really miss ESD, which also enabled software mixing (this was before dmix) but was far simpler and wasn't this over-complicated mess like PulseAudio.

Re:PulseAudio has been removed from dports by datenwolf on Monday August 22, 2016 @01:18PM (#12337836)
dmix is terribly broken.
Re:PulseAudio has been removed from dports by anonbanker on Monday August 22, 2016 @12:45PM (#12337559)
JACK is a (better) alternative to PulseAudio, works in BSD, works with ALSA and OSS, and is superior in every way.

The reader is encouraged to download a KXStudio LiveUSB image, and see all the cool things JACK allows that PulseAudio cannot/will not catch up to.

Re:PulseAudio has been removed from dports by microcolonel on Monday August 22, 2016 @01:26PM (#12337889)
JACK doesn't have Bluetooth support, nor array microphone support. It is also terrible on battery, and doesn't perform correctly on a non-realtime kernel.

That's not to say JACK isn't useful; but it isn't a solution to the desktop audio problem, it's a solution to the professional audio problem.

JACK also doesn't have the semantics and auto-configuration code which makes Pulseaudio work out of the box, and it is considerably more difficult to make JACK control clients. These are more reasons why even though JACK existed before Pulseaudio, it was not integrated with common user applications.

Re:PulseAudio has been removed from dports by the_mitsuhiko on Monday August 22, 2016 @01:16PM (#12337824)
> JACK is a (better) alternative to PulseAudio

For some things, but not for others. They are really not even competing to be in the same space. Such blanket statements do not help.

Re:PulseAudio has been removed from dports by david-given on Monday August 22, 2016 @01:17PM (#12337829)
I've played with JACK a bit, and I've always found it pretty obtuse, but that was a while ago.

The obvious question, though, is: is there a emulation layer for JACK that supports the PulseAudio API?

Re:PulseAudio has been removed from dports by the_mitsuhiko on Monday August 22, 2016 @01:19PM (#12337847)
There is some limited interoperability by nesting PA within JACK: http://www.jackaudio.org/faq/pulseaudio_and_jack.html
Re:PulseAudio has been removed from dports by pyre on Monday August 22, 2016 @01:09PM (#12337751)
JACK existed pre-Pulseaudio and it wasn't used by very much software. Most things only supported ALSA / OSS / eSound / whatever KDE's sound system was.