PulseAudio on FreeBSD #26
Replies: 4 comments 5 replies
-
@grahamperrin Thanks! Is there another more native way to play notification sounds in DE on BSD Unixes then? All of my Linux machines (Arch, Debian, Kali) with Desktop Environments it comes enabled by default or is enabled by default once I install a package for pulseaudio. I never had to or cared about turning it on and off. After all its a daemon, and when its not being invoked its not consuming any CPU time... I see the FreeBSD bug that could restrict a user from using pulseaudio, in that case another method of playing sound could be added as a dependency and used by arttime till pulseaudio issues are fixed in FreeBSD. Arttime shouldn't silently turn the daemon on and off for the user. Consider this: A user starts arttime, arttime determines that the pulseaudo daemon is not running. Arttime decides to start the daemon for the user with the intent to close it while it exits (given it was the one who started it). Meanwhile the user turns on their music player that also uses pulseaudio daemon. Then in the sequence of events they quit arttime before they want to stop playing music. Arttime will kill the music being played by the user, and annoying the user... |
Beta Was this translation helpful? Give feedback.
-
@grahamperrin On Linux VM this is what I see: the reason
This fixed multiple problems that could have arisen from prior logic for both Linux and FreeBSD:
‡ Note: This fixes any problem arttime could have caused on Linux/BSD systems that had pulseaudio installed and disabled, because user was using a competing daemon. Fix went into main 0c2a0cb, pull and give it a try. I'll send an email to pulse audio developers to mention on their man page for paplay that paplay implicitly starts pulseaudio daemon, as if user did |
Beta Was this translation helpful? Give feedback.
-
Now PipeWire (the supposed drop-in replacement for PulseAudio) is also supported since b4ff7e8. Not sure how it performs on FreeBSD. It is the default on Fedora, and works well there. |
Beta Was this translation helpful? Give feedback.
-
Related (but not to arrtime): |
Beta Was this translation helpful? Give feedback.
-
https://github.com/poetaman/arttime/wiki#user-content-unixes understandably suggests
paplay
as a dependency.Where PulseAudio is required, it's also commonplace to prevent or avoid use. Typically, configure the client to not automatically spawn a daemon when needed:
autospawn=no
Hint
In this type of environment, before then after temporary use of things such as
paplay
:pulseaudio --start
pulseaudio --kill
Notes
autospawn
FreeBSD bugs:
Beta Was this translation helpful? Give feedback.
All reactions