Hi Romain!
Here is /etc/asound.conf - hope this helps but I am still at a loss. I
also tried analyzing strace output but it didn't reveal the lower level
details I had hoped for.
Dave
# Asound.conf START
pcm.snoop10 {
type dsnoop
ipc_key 183673654
ipc_key_add_uid true
ipc_perm 0666
slave {
pcm"hw:1"
period_time 0
period_size 1024
buffer_size 4096
rate 11025
channels 10
}
slowptr true
}
pcm.channel1 {
type plug
slave.pcm snoop10
ttable.0.0 1
}
pcm.channel1 {
type plug
slave.pcm snoop10
ttable.0.0 1
}
pcm.channel2 {
type plug
slave.pcm snoop10
ttable.0.1 1
}
pcm.channel3 {
type plug
slave.pcm snoop10
ttable.0.2 1
}
pcm.channel4 {
type plug
slave.pcm snoop10
ttable.0.3 1
}
pcm.channel5 {
type plug
slave.pcm snoop10
ttable.0.4 1
}
pcm.channel6 {
type plug
slave.pcm snoop10
ttable.0.5 1
}
pcm.channel7 {
type plug
slave.pcm snoop10
ttable.0.6 1
}
pcm.channel8 {
type plug
slave.pcm snoop10
ttable.0.7 1
}
On Mon, Nov 12, 2012 at 8:58 PM, Romain Beauxis <[email protected]>wrote:
> 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
>
------------------------------------------------------------------------------
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