Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

You are deeply attached to your friends and acquaintances.


comp / comp.unix.bsd.freebsd.misc / Re: 14.1: /dev/audio gone? Is there a replacement?

SubjectAuthor
* 14.1: /dev/audio gone? Is there a replacement?Winston
+- Re: 14.1: /dev/audio gone? Is there a replacement?Winston
`- Re: 14.1: /dev/audio gone? Is there a replacement?Alastair Hogge

1
Subject: 14.1: /dev/audio gone? Is there a replacement?
From: Winston
Newsgroups: comp.unix.bsd.freebsd.misc
Organization: A noiseless patient Spider
Date: Thu, 13 Jun 2024 15:07 UTC
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: wbe@UBEBLOCK.psr.com.invalid (Winston)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: 14.1: /dev/audio gone? Is there a replacement?
Date: Thu, 13 Jun 2024 11:07:09 -0400
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <ydo784j2zm.fsf@UBEblock.psr.com>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Thu, 13 Jun 2024 17:07:12 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="a5646554e38bf28fd70d0e8ff6a6c39b";
logging-data="2451009"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/L7KYRLe+7h5Tn5KrqDXPR"
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:EFi//wqt8lNG7E741YPS9gxB66g=
sha1:WPM3kIfeCJbXzevtN+7xMP4W+lY=
Mail-Copies-To: never
View all headers

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

Subject: Re: 14.1: /dev/audio gone? Is there a replacement?
From: Winston
Newsgroups: comp.unix.bsd.freebsd.misc
Organization: A noiseless patient Spider
Date: Sat, 15 Jun 2024 00:52 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: wbe@UBEBLOCK.psr.com.invalid (Winston)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: 14.1: /dev/audio gone? Is there a replacement?
Date: Fri, 14 Jun 2024 20:52:02 -0400
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <ydjzirhvt9.fsf@UBEblock.psr.com>
References: <ydo784j2zm.fsf@UBEblock.psr.com>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Sat, 15 Jun 2024 02:52:05 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="bc7ec559e12537c9f89a510b666a5114";
logging-data="3290004"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19K751jBFkCPfnXz9Aa7w7B"
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:FhNgj2482UY9VAr6vGLo54dzMPk=
sha1:h77DA2buRxloOPsY2dCNMRefflM=
Mail-Copies-To: never
View all headers

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

Subject: Re: 14.1: /dev/audio gone? Is there a replacement?
From: Alastair Hogge
Newsgroups: comp.unix.bsd.freebsd.misc
Organization: A noiseless patient Spider
Date: Wed, 19 Jun 2024 04:57 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: agh@riseup.net (Alastair Hogge)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: 14.1: /dev/audio gone? Is there a replacement?
Date: Wed, 19 Jun 2024 04:57:55 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 50
Message-ID: <v4togj$1jujh$1@dont-email.me>
References: <ydo784j2zm.fsf@UBEblock.psr.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 19 Jun 2024 06:57:56 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="78d479c3875cc7b4c781efb9d809f654";
logging-data="1702513"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+cUstTfB0tntSoXwHOhi9y8oaJs6S1gT0="
User-Agent: Pan/0.145 (Duplicitous mercenary valetism; d7e168a
git.gnome.org/pan2)
Cancel-Lock: sha1:fpnrNVVo5djWGfha1MZz6guhB5k=
View all headers

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

1

rocksolid light 0.9.8
clearnet tor