On 21/01/2022 14.08, David Haller wrote:
Hello,
On Fri, 21 Jan 2022, Carlos E. R. wrote:
First problem: I can't find a CLI command able to play the sound files I want, found in the default installed system:
mpv, mplayer, 'ffplay -nodisp -autoexit'
cer@Erebor4:~> ffplay -nodisp -autoexit /usr/share/sounds/freedesktop/stereo/dialog-warning.oga runs, but I get silence.
I can play sounds with VLC, but not being a CLI command, it starts a GUI that then I have to close manually. "vlc --help" is huge, I have not seen a way to play a sound and exit.
'cvlc --play-and-exit', which is obvious once you've found it ;)
Thanks :-) runs, but I get silence. I then try "vlc -play-and-exit" and after a way I get the sound. Now cvlc also produces sound.
These four players should play just about anything besides midi or tracker files ;)
For the pulseaudio problem, see Adam's answer...
Thanks! This does work, but only the second run, the first run is silent. Repeatable: after I type something here in this post, it fails, then it works. Same problem with ogg123, the first time no sound, the second works. Same issue with other programs as user! I have to try twice. Weird. -- Cheers / Saludos, Carlos E. R. (from oS Leap 15.3 x86_64 (Erebor-4))