View previous topic :: View next topic |
Author |
Message |
kd7tqn
Joined: 08 Jan 2010 Posts: 2 Location: Washington
|
Posted: Fri Jan 08, 2010 10:44 pm Post subject: Darkice ALSA Soundcard input issues. |
|
|
Hello,
I am having some issues getting darkice to use an ALSA system for streaming sound from the sound card input. i can get it to work with OSS input but not ALSA. I would prefer to use ALSA so i can use one sound card for multable inputs ( ie use the rear input as one and the internal CD input as another) and multable instances of darkice, but I cant seem to get it to work.
here is what i get when i try to start darkice...
jason@Stream-BawFaw:~$ /usr/bin/darkice -v 0 -c /home/jason/darkice.cfg
DarkIce 0.20.1 live audio streamer, http://darkice.tyrell.hu/
Copyright (c) 2000-2007, Tyrell Hungary, http://tyrell.hu/
Using config file: /home/jason/darkice.cfg
ALSA lib pcm.c:2145:(snd_pcm_open_noupdate) Unknown PCM HW:0,2
DarkIce: DarkIce.cpp:1187: can't open connector [0]
jason@Stream-BawFaw:~$
here is my darkice config....
[general]
duration = 0
bufferSecs = 1
[input]
device = HW:1,2
sampleRate = 22050
bitsPerSample = 16
channel = 1
[shoutcast-0]
bitrateMode = cbr # variable bit rate mode
bitrate = 24
quality = 1.0 # encoding quality
server = ************* # host name of the server
port = **** # source port of the ShoutCast server,usually 8001
password = **** # source password to the ShoutCast server
name = BNSF Centralia South - Covers from Nisqually, Wa to Vancouver, Wa # name$
url = http://www.railroadradio.net # URL related to the stream
genre = Railroad Radio Scanner # genre of the stream
now it does work when i set the input devide to /dev/dsp , but i dont think i can have multable inputs with that.
any help would be greatly appreciated. _________________ Jason J. Hill |
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Fri Jan 08, 2010 11:10 pm Post subject: |
|
|
The device is wrong, try using something else, even the name default might be sufficient
karl. |
|
Back to top |
|
|
kd7tqn
Joined: 08 Jan 2010 Posts: 2 Location: Washington
|
Posted: Sat Jan 09, 2010 12:19 am Post subject: |
|
|
making the device "default" works, but i guess i need to know how to tell the first instance of darkice one device input and another instance with a seperate config file a different input. Im not sure what the devices should be... _________________ Jason J. Hill |
|
Back to top |
|
|
Meswara Marco
Joined: 09 Apr 2011 Posts: 14
|
Posted: Mon Apr 11, 2011 6:21 am Post subject: |
|
|
karlH wrote: |
The device is wrong, try using something else, even the name default might be sufficient
karl. |
how do we go about determining the device name?
it so happens that /dev/dsp/ seems to work on mine.
lspci doesn't seem to be cutting it? |
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Mon Apr 11, 2011 1:17 pm Post subject: |
|
|
lspci is for listing pci devices (so that would tell you what audio cards(s) you have installed) but it will not tell you how many DSP devices there are on a particular card. arecord -l should be enough to to show your capture devices.
karl. |
|
Back to top |
|
|
Meswara Marco
Joined: 09 Apr 2011 Posts: 14
|
Posted: Tue Apr 12, 2011 3:32 am Post subject: |
|
|
karlH wrote: |
lspci is for listing pci devices (so that would tell you what audio cards(s) you have installed) but it will not tell you how many DSP devices there are on a particular card. arecord -l should be enough to to show your capture devices.
karl. |
Noted karl. When i run that command, this is what i get.
# arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: Intel [HDA Intel], device 0: STAC92xx Analog [STAC92xx Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
Is this hw0.0? |
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Tue Apr 12, 2011 11:57 am Post subject: |
|
|
hw:0.0 is the reference for the actual card, but with alsa you also have names that act as wrappers around these devices like plughw:0.0 or default
karl. |
|
Back to top |
|
|
Meswara Marco
Joined: 09 Apr 2011 Posts: 14
|
Posted: Thu Apr 14, 2011 5:20 am Post subject: |
|
|
karlH wrote: |
hw:0.0 is the reference for the actual card, but with alsa you also have names that act as wrappers around these devices like plughw:0.0 or default
karl. |
So how do i deduce the name of my sound card from the output of 'arecord -l' ? is there a way ?
How do we find out what are the wrapper names ? any commands to use ?
In my case , i just used /dev/dsp. |
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Thu Apr 14, 2011 1:23 pm Post subject: |
|
|
the /dev/dsp reference is not for alsa, that is the OSS naming which alsa has a compatibility mechanism for.
hw:0.0 is card 0 device 0. arecord -L (according to the man page at least) lists the PCMs but these are primarily alsa questions so you should confirm that with the alsa project.
karl. |
|
Back to top |
|
|
Meswara Marco
Joined: 09 Apr 2011 Posts: 14
|
Posted: Fri Apr 15, 2011 3:07 am Post subject: |
|
|
Thanx karl. |
|
Back to top |
|
|
|