Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

"Little else matters than to write good code." -- Karl Lehenbauer


computers / alt.os.linux.slackware / Re: use of at to schedule a sound

SubjectAuthor
* use of at to schedule a soundJoseph Rosevear
`* Re: use of at to schedule a soundHenrik Carlqvist
 `- Re: use of at to schedule a soundJoseph Rosevear

1
use of at to schedule a sound

<tspcfv$3p8uq$2@dont-email.me>

 copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=1585&group=alt.os.linux.slackware#1585

 copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: Mail@JoesLife.org (Joseph Rosevear)
Newsgroups: alt.os.linux.slackware
Subject: use of at to schedule a sound
Date: Sat, 18 Feb 2023 02:17:36 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 28
Message-ID: <tspcfv$3p8uq$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 18 Feb 2023 02:17:36 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="1d0c7846002d27f2e08c9c47b177a75c";
logging-data="3974106"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/HhxHTmtpWO9ifvDuncIyJZKclpO4RPqs="
User-Agent: Pan/0.149 (Bellevue; 4c157ba git@gitlab.gnome.org:GNOME/pan.git)
Cancel-Lock: sha1:CAA//P5WsgeUcFqT77d9eElo9I0=
Face: /tmp/joe/scratch/tryit/on_64
 by: Joseph Rosevear - Sat, 18 Feb 2023 02:17 UTC

Hello,

I'm trying to schedule, using at, the playing of a sound. I can schedule
events OK, but the playing of a sound is troublesome. Pulseaudio doesn't
want to cooperate.

I'm using

play -q /usr/share/sounds/purple/alert.wav

in a script to play the sound.

I schedule the execution of the script with
another script that performs

at -f $level/ring now + $1 minutes

$level is the location of the script that plays the sound, and ring is
the script.

It doesn't work. Pulseaudio seems to hang. Sometimes it plays the sound
later--maybe after a shut down and restart? I didn't carefully note the
scenario.

I'm running the script as an ordinary user in an environment that has
pulseaudio already running.

-Joe

Re: use of at to schedule a sound

<tsq9kg$3vm8b$2@dont-email.me>

 copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=1588&group=alt.os.linux.slackware#1588

 copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: Henrik.Carlqvist@deadspam.com (Henrik Carlqvist)
Newsgroups: alt.os.linux.slackware
Subject: Re: use of at to schedule a sound
Date: Sat, 18 Feb 2023 10:34:56 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <tsq9kg$3vm8b$2@dont-email.me>
References: <tspcfv$3p8uq$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 18 Feb 2023 10:34:56 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="698784b9043280d237dd5fe8dd3b65bd";
logging-data="4184331"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/4z77LWZWKMN++jaLBXhUY"
User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508
git://git.gnome.org/pan2)
Cancel-Lock: sha1:ieoCzhyXjgvRK0ScgRznWsphNhw=
 by: Henrik Carlqvist - Sat, 18 Feb 2023 10:34 UTC

On Sat, 18 Feb 2023 02:17:36 +0000, Joseph Rosevear wrote:
> It doesn't work. Pulseaudio seems to hang. Sometimes it plays the
> sound later--maybe after a shut down and restart? I didn't carefully
> note the scenario.

My guess is that when called from at, your script will call play which
will not, as you assume, use pulsaudio. Instead I guess that play uses
some other, older audio device like /dev/audio which is blocked by some
other application (pulseaudio?). When that other application releases the
device play will get to play its sound.

On the manpage of play is a description of the environment variable
AUDIODEV that can be used to tell play which audio device to use.

regards Henrik

Re: use of at to schedule a sound

<tssmng$bh9q$1@dont-email.me>

 copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=1592&group=alt.os.linux.slackware#1592

 copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: Mail@JoesLife.org (Joseph Rosevear)
Newsgroups: alt.os.linux.slackware
Subject: Re: use of at to schedule a sound
Date: Sun, 19 Feb 2023 08:30:40 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 35
Message-ID: <tssmng$bh9q$1@dont-email.me>
References: <tspcfv$3p8uq$2@dont-email.me> <tsq9kg$3vm8b$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 19 Feb 2023 08:30:40 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="e9efe7ccaf6934a2dd9b590d6f7c64d4";
logging-data="378170"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1803cmORlooZhFjEgpg23cXfMJ5Wfth0co="
User-Agent: Pan/0.149 (Bellevue; 4c157ba git@gitlab.gnome.org:GNOME/pan.git)
Cancel-Lock: sha1:0XnhISNdFT27EbtvQfZFsdhPqLA=
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAQAAAD9CzEMAAAAB3RJTUUH5wISBRox
oH115AAA ABV0RVh0U29mdHdhcmUAWFBhaW50ID
MuMS40FRQqnAAAB39JREFUWI
_Vl2NuOG1d2BuBv7zrw oFZ3W5IlWbYnA2SAzOQi
mOQd8nS5yUsFCAIMnIkxQRLb
_k8T2WHLr1N1kkyxW1d65qF3sHoS8 YRWLa6/Dv/
71L4Z/+EeCLArlnQWVpNVgIV
_iICJKkM+gdHYwGWZYNBgkZSZKM5VNWe2CWLKlB
IwhajVatVomCvWgv69WojI4G
_kw3oJbkclCdrWVaJ5WYQZVEUVKJK7Uz0WK2S3AqyrEFl0MuC
rCqez+YVZ6mPqu
_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FJvXUqx+dG3X
eeu299mTeA1bNOJp3nnd6q1K
_VSm8h6B00Gke5JJl6qvbexqhxcGMsK+H8 mkfSP
N+yYGuvKSv81BuTrh5clCfm+
_KPy8cqNUS9oT39yeJCmqZ+Do2RwKNyf78Fob+fRCVHz
7+M87HeyXrLSGh1ODzg
_9PEnebP5XJj7wszHYaaxLrLPCIt77N3m1EtQ2Jfv3muPPafved3L5
5yJ5fKrYv Yz4P1Ypm+8jxpaGAAAAAElFTkSuQmCC
 by: Joseph Rosevear - Sun, 19 Feb 2023 08:30 UTC

On Sat, 18 Feb 2023 10:34:56 -0000 (UTC), Henrik Carlqvist wrote:

> On Sat, 18 Feb 2023 02:17:36 +0000, Joseph Rosevear wrote:
>> It doesn't work. Pulseaudio seems to hang. Sometimes it plays the
>> sound later--maybe after a shut down and restart? I didn't carefully
>> note the scenario.
>
> My guess is that when called from at, your script will call play which
> will not, as you assume, use pulsaudio. Instead I guess that play uses
> some other, older audio device like /dev/audio which is blocked by some
> other application (pulseaudio?). When that other application releases
> the device play will get to play its sound.
>
> On the manpage of play is a description of the environment variable
> AUDIODEV that can be used to tell play which audio device to use.
>
> regards Henrik

Henrik,

Thank you for your reply. You gave me some things to think about.

By the way I ran some more tests, and it seems there is something wrong
with my installation. I tested scheduling a simple event without sound,
and that showed the same trouble.

Then I did the same simple test on a different Slackware installation,
and it worked with no trouble, although I didn't go so far as to test the
sound.

It seems my system is due for some upgrading--to try to chase the bugs
out.

-Joe

1
server_pubkey.txt

rocksolid light 0.9.7
clearnet tor