This probably isn't you guys and gals problem, but I have to start somewhere.

I'm using a Ubuntu 6.06.1 server, and I'm trying to get liquidsoap to pick up 
an ogg-vorbis audio stream from the internet and play it out through the 
soundcard (a high end M-Audio Delta 44) via the ALSA sound system. As I 
understand it, this could be as easy as:

liquidsoap 'out(input.http("http://1.2.3.4:1000/stream.ogg";))'
(I'll eventually need to start it -d at boot.)

When I try to do this as root, I get:
init: security exit, root euid

Doesn't seem to want to run as root. When I do it from a user account I get:
2007/11/19 16:13:23 >>> LOG START
2007/11/19 16:13:23 [protocols.extproto:3] Found "/usr/bin/wget"
2007/11/19 16:13:23 [main:3] Liquidsoap 0.3.4+svn (trunk/[EMAIL PROTECTED])
2007/11/19 16:13:23 [threads:3] Created thread "light task scheduler" (1 
total)
2007/11/19 16:13:23 [threads:3] Created thread "root" (2 total)
2007/11/19 16:13:23 [root:3] Waking up active nodes...
2007/11/19 16:13:23 [threads:3] Created thread "http polling" (3 total)
2007/11/19 16:13:23 [threads:3] Created thread "ao_playback" (4 total)
2007/11/19 16:13:23 [root:3] Broadcast starts up!
ALSA snd_pcm_open error: No such device

Doesn't seem to see ALSA.

Now when I use another playback program, ogg123, as root everything works 
fine.

>From a user account I get:
ALSA lib confmisc.c:672:(snd_func_card_driver) cannot find card '0'
ALSA lib conf.c:3493:(_snd_config_evaluate) function snd_func_card_driver 
returned error: No such device
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:3493:(_snd_config_evaluate) function snd_func_concat returned 
error: No such device
ALSA lib confmisc.c:1072:(snd_func_refer) error evaluating name
ALSA lib conf.c:3493:(_snd_config_evaluate) function snd_func_refer returned 
error: No such device
ALSA lib conf.c:3962:(snd_config_expand) Evaluate error: No such device
ALSA lib pcm.c:2102:(snd_pcm_open_noupdate) Unknown PCM default
ALSA snd_pcm_open error: No such device
Error: Cannot open device alsa09

So it would seem under Ubuntu, ALSA can only be used by root for some reason, 
but liquidsoap can't be run by root. I don't know a lot about sound programs, 
anyone have any idea what's going on?

--
Jeff Simmons                                   [EMAIL PROTECTED]
Simmons Consulting - Network Engineering, Administration, Security
"You guys, I don't hear any noise.  Are you sure you're doing it right?"
        --  My Life With The Thrill Kill Kult

Reply via email to