I don't hear anything on my sound system when playing audio.
What is the minimal set of programs required to play something on my machines audio jack or S/PDIF output?
How did I get there?
apt-get install --no-install-recommends sox libsox-fmt-all
to install the
sox audio player. When I tried to play a file, I got
ALSA lib confmisc.c:767:(parse_card) cannot find card '0' ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM default play FAIL formats: can't open output file `default': snd_pcm_open error: No such file or directory
so, after looking at the dependencies of
libsox-fmt-all, I ran
apt-get install libsndio6.1 pulseaudio
Now the output of
sox seems that it is playing a file fine when asked to do so, except that I don't get any sound output on my sound system. (The sound system is set-up fine.)
The output of
cat /proc/asound/cards is
0 [PCH ]: HDA-Intel - HDA Intel PCH HDA Intel PCH at 0x81414000 irq 313
The output of
aplay -l is
aplay: device_list:270: no soundcards found...
I made it work. Now I can say that there were two problems:
- My user did not have sufficient rights to access the sound device. (This answer to another question told me that.)
- My sound device was muted. (I marked the answer which told me that as "correct")
So, all in all, the steps I had to take were
apt-get install --no-install-recommends sox libsox-fmt-all alsa-utils
- Add myself to the
usermod --append --groups audio <username>
- Change the alsa volume:
- Play the song with