[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: `play-sound-file', no mp3 support, sets global volume w/o reset
From: |
Emanuel Berg |
Subject: |
Re: `play-sound-file', no mp3 support, sets global volume w/o reset |
Date: |
Wed, 11 Sep 2024 14:07:07 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
> But play-sound-file has another problem, namely, if you do
> e.g.
>
> (play-sound-file (file-name-concat bad-dir "data" "up.au") 0.4)
>
> it sets the global volume to 40% and worse, after it is
> done, it isn't reset.
Did anyone check this out?
If unsolved, in practice it means one cannot use it.
My Russian eurodance plays loud and clear at 30-40%.
Just imagine I execute some code that plays a sound at 100%
and then don't reset. The whole block would be dancing.
So while most people would probably just never use a program
again if they know they have to reset their settings
afterwards, it actually could be even dangerous.
Also, another bad thing is that the command monopolizes
execution. I know Elisp is single-threaded and the idle timer
and C threads don't change that, but what about
a child process?
Would that work?
--
underground experts united
https://dataswamp.org/~incal