Hi Dave!
2012/11/12 Dave Pascoe <[email protected]>:
> I'm running the latest Liquidsoap from Git: Liquidsoap 1.0.1+scm
> (git://github.com/savonet/liquidsoap.git@f776e7f4c5d3729cbcf863381f3cadd96c578a5b:20121111:201929)
> and having an issue with live sound card input (with ALSA). I already know
> ALSA is not guaranteed to be well supported.
Thanks for doing that! Indeed, we generally find the ALSA API not very
easy to support without having a lot of hardware to test it with..
> This computer has two sound cards - an internal motherboard card (hw:0) and
> an additional multi-channel PCI card (based on ice1712) on hw:1. I am using
> ALSA's dsnoop to break out the individual ice1712 sound inputs - this setup
> works fine with Darkice to send audio to an Icecast server.
>
> The Liquidsoap config:
>
> #!/usr/local/bin/liquidsoap -v
> set("log.file.path", "/tmp/liquidsoap/log")
> s = input.alsa(device="pcm.channel1")
> output.icecast(%mp3(samplerate=22050, bitrate=24,
> stereo=false),host="xxxx.xxxx.net",port=xxxx,password="xxxx",mount="teststream",
> icy_metadata="true", name="Test Stream", description="Test Stream",
> fallible=true, public=false,s)
>
> I have tested the above config with hw:0 and that default hw:0,0 sound card
> works fine (s = input.alsa()). When I try to use the virtual ALSA device
> names it fails with an ALSA error 13 - permission denied error (see below).
>
> The liquidsoap user was already added to the 'audio' group on the system so
> that isn't it. The liquidsoap user can access the sound card via the ALSA
> command-line tools alsactl and alsamixer, etc. And all instances of darkice
> were stopped prior to the Liquidsoap testing so it doesn't appear to be a
> card/input locking issue. I've also tried opening up permissions in
> /dev/snd/{} to no avail.
>
> any input appreciated. I am not sure I can easily use any of the other
> input.x options as it is a special sound card with ALSA drivers that work
> fine.
I am generally clueless about your specific issue. However, hw:0, hw:1
are hardware devices, pcm.channels is a virtual device that you
defined in your alsa configuration somewhere. I think it could help to
know more about pcm.channels' definition.. Could you share it with us?
Thanks,
Romain
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users