sound, pcm0, uaudio0, dsp, etc. on FreeBSD 14.3 vs. mu-law sound file
From
Winston@21:1/5 to
All on Sat Aug 9 17:45:18 2025
Background:
During boot, log messages show that the system finds the speakers,
creates uaudio0, and creates pcm0 on uaudio0.
'cat /dev/sndstat' confirms pcm0 as an installed device.
In /dev, I see a /dev/dsp but no /dev/uaudio0 nor /dev/pcm0, so I'm
not sure where those devices are hidden.
Goal:
I have some old mu-law, 8-bit, mono, 8000 Hz, sound files I'd like to be
able to play.
* In Solaris, I could just cp file.au /dev/audio.
'cp file.au /dev/dsp', however, just gives me a short burst of noise,
indicating format conversion is needed.
* pulseaudio and its dependencies provide sndfile-play, which does that
conversion and works. Unfortunately, its dependency libxslt is
currently unsupported and listed as vulnerable by pkg audit. Most of
the features of pulseaudio, such as the ability to mix multiple sound
streams, I don't need on this machine, so I'm looking for an
alternative.
* With pulseaudio and dependencies uninstalled, a web browser is still
able to play audio just fine, suggesting something is doing whatever
conversions are needed.
Is there a way to play .au sound files without pulseaudio?
I expect I could manually convert the files using audacity, but I'd
rather leave that as a last option.
Thanks in advance,
-WBE
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)