I am getting a number of errors when I try to play a sound file using sox (/usr/bin/play) on my RPi2. I have alsa-utils installed but what am I missing?
$this->bbcode_second_pass_code('', '% alsamixer
cannot open mixer: No such file or directory
')
And
$this->bbcode_second_pass_code('', '% aplay -l
aplay: device_list:268: no soundcards found...
')
So playing fails
$this->bbcode_second_pass_code('', '% play 01-Loading_the_Weapon.mp3
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4292:(_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:4292:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4771:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM default
[1] 492 floating point exception (core dumped) play 01-Loading_the_Weapon.mp3')