• 14.1: /dev/audio gone? Is there a replacement?

    From Winston@21:1/5 to All on Thu Jun 13 11:07:09 2024
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Winston@21:1/5 to I previously on Fri Jun 14 20:52:02 2024
    Solved.

    I previously asked:
    After upgrading to 14.1, it looks like /dev/audio is gone.
    [...]
    I used to be able to do "cp somesound.au /dev/audio".
    What, if anything, is the replacement?

    Found one: "sndfile-play somesound.au"

    from /usr/local/bin/sndfile-play from the libsndfile package/port.
    -WBE

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Alastair Hogge@21:1/5 to Winston on Wed Jun 19 04:57:55 2024
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)