On 09/17/2015 03:22 PM, Paul Rogers wrote:
I've tried snd-pcsp, snd_dummy, and a beep utility without success. I'm
probably missing something simple. How can I sound a beep when building
LFS with alsa enabled?
Playing a sound file with mpg123 would be an acceptable alternative,
which I do when building BLFS. But how when I'm building LFS? I've
tried linking host programs with no success.
aplay?
if [ $? -eq 0 ]
then
aplay "happytune.au"
else
aplay "braaak.au"
fi
Yes, but how do I do that when logged in as LFS. I receive:
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4259:(_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:4259:(_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:4259:(_snd_config_evaluate) function snd_func_refer returned
error: No such file or directory
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or
directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM default
aplay: main:722: audio open error: No such file or directory
If I can fix that problem with aplay it seems I could use the same logic and
use mpg123.
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page
Do not top post on this list.
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
http://en.wikipedia.org/wiki/Posting_style