Sujet : Re: 14.1: /dev/audio gone? Is there a replacement?
De : agh (at) *nospam* riseup.net (Alastair Hogge)
Groupes : comp.unix.bsd.freebsd.miscDate : 19. Jun 2024, 06:57:55
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v4togj$1jujh$1@dont-email.me>
References : 1
User-Agent : Pan/0.145 (Duplicitous mercenary valetism; d7e168a git.gnome.org/pan2)
On Thu, 13 Jun 2024 11:07:09 -0400, Winston wrote:
Hi,
SUMMARY:
After upgrading to 14.1, it looks like /dev/audio is gone.
Maybe this is some side effect of the "hot un/plugging" changes to audio
that wasn't mentioned in the Release Notes?
I used to be able to do "cp somesound.au /dev/audio".
What, if anything, is the replacement?
DETAILS:
The boot-up messages in the log file show the device uaudio0 getting
discovered just as before. The only log file difference I see is that
"pcm0: <USB audio> on uaudio0" has changed to "pcm0: on uaudio0".
I see no audio*, uaudio*, nor pcm* in /dev now, though.
1) /dev/dsp0 isn't an instant substitute:
"cp somesound.au /dev/dsp0" sounds like both the wrong speed and the
volume cranked up well past distortion level.
2) "out123 -m -r 8000 --speed .5 -P -6 somesound.au" sounds like maybe
something like this could be made to work if I could find all the
right options, but the result so far is horribly noisy. [The .au
file I'm trying to play is sample rate 8000 mono.]
3) pacat/paplay gets "Connection failure: Connection refused".
Any suggestions?
-WBE
There has been loads of exciting work in /sys/dev/sound/, tho, the two
commits that might be of interest are:
sound: Get rid of snd_clone and use DEVFS_CDEVPRIV(9):
https://cgit.freebsd.org./src/commit/sys/dev/sound/pcm?id=e8c0d15a64fadb4a330f2da7244becaac161bb70
sound: Remove unused dsp_cdevs[] fields and devices:
https://cgit.freebsd.org./src/commit/sys/dev/sound/pcm/dsp.c?id=72cbd381075a2eb22a070505334d1ce92ec2d7ad
Otherwise no idea on how to replicate the older methods with the new sound
work.
-- To health and anarchy