pub fn sound_socket(runtime: Option<&Path>) -> Option<PathBuf>Expand description
The sound server’s socket on this machine, when there is one: PulseAudio’s, which PipeWire
serves too, in the runtime folder runtime ($XDG_RUNTIME_DIR).
Only a socket counts. On macOS and Windows there is no such folder, and on a Linux without a sound server there is no such socket; either way nothing could carry the sound out of a container, and the tab says so instead of starting a player that cannot be heard.