[icecast] FreeBSD - 2 soundcards?
Tim Pozar
pozar at lns.com
Mon Mar 11 12:39:00 UTC 2002
On Thu, Mar 07, 2002 at 10:18:57AM +0300, Gavin wrote:
> does anyone have experience of running two or more sound cards in a FreeBSD
> machine? I'm using liveice/icecast to stream radio stations, and I'd like
> to get several in one box.
>
> I realise a BSD list would be a better place for this, but who else but
> streaming folk would ever think about multiple sound cards?
>
> After installing a second card, when I makedev snd1, it creates all the
> usual devices but ending in a 1, eg. /dev/dsp1, /dev/audio1. So I think
> ahah! I now have dsp and dsp1! But these turn out to be links to the first
> devices, eg. /dev/dsp, /dev/audio.
>
> Has anyone ever managed this?
Yes. I am running multiple stations streaming (muliple bit rates
too!) and archiving on one box.
As an example I have one box with three audio cards...
pcm0: <Creative CT5880-C> port 0xdc00-0xdc3f irq 5 at device 9.0 on pci0
pcm1: <Creative CT5880-C> port 0xe000-0xe03f irq 12 at device 10.0 on pci0
pcm2: <Creative CT5880-C> port 0xe400-0xe43f irq 10 at device 11.0 on pci0
Normally you would have to run MAKEDEV to create the devices you
have installed. Ie...
#./MAKEDEV snd2
Will create the devices for the third card as numbers start with
zero. /dev/dsp, /dev/dspW, /dev/mixer, etc. are just sym links to
the default real device names such as:
lrwxrwxrwx 1 root wheel 6 Nov 24 22:33 audio -> audio0
crw-rw-rw- 1 root wheel 30, 4 Nov 24 22:33 audio0
crw-rw-rw- 1 root wheel 30, 20 Nov 24 22:32 audio1
crw-rw-rw- 1 root wheel 30, 36 Nov 24 22:32 audio2
lrwxrwxrwx 1 root wheel 4 Nov 24 22:33 dsp -> dsp0
crw-rw-rw- 1 root wheel 30, 3 Nov 24 22:33 dsp0
crw-rw-rw- 1 root wheel 30, 19 Nov 24 22:32 dsp1
crw-rw-rw- 1 root wheel 30, 35 Nov 24 22:32 dsp2
lrwxrwxrwx 1 root wheel 5 Nov 24 22:33 dspW -> dspW0
crw-rw-rw- 1 root wheel 30, 5 Nov 24 22:33 dspW0
crw-rw-rw- 1 root wheel 30, 21 Nov 24 22:32 dspW1
crw-rw-rw- 1 root wheel 30, 37 Nov 24 22:32 dspW2
lrwxrwxrwx 1 root wheel 6 Nov 24 22:33 mixer -> mixer0
crw-rw-rw- 1 root wheel 30, 0 Nov 24 22:33 mixer0
crw-rw-rw- 1 root wheel 30, 16 Nov 24 22:32 mixer1
crw-rw-rw- 1 root wheel 30, 32 Nov 24 22:32 mixer2
[etc.]
I use my own perl script for live streaming encoder (mixice) instead
of darkice. In the script I just point at the real device name (ie.
/dev/dsp1) in the script. I imagine that you would do the same for
darkice and liveice.
Tim
--
Snail: Tim Pozar / LNS / 1978 45th Ave / San Francisco CA 94116 / USA
POTS: +1 415 665 3790 Radio: KC6GNJ / KAE6247
"It's a damn poor mind that can only think of one way to spell a word."
- Andrew Jackson
"What is wanted is not the will to believe, but the will to find out,
which is the exact opposite." - Bertrand Russell, "Skeptical_Essays"
--- >8 ----
List archives: http://www.xiph.org/archives/
icecast project homepage: http://www.icecast.org/
To unsubscribe from this list, send a message to 'icecast-request at xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
More information about the Icecast
mailing list