- Joined
- Oct 15, 2015
- Messages
- 19
I had this RPi up with op25 and darkice several years ago but haven't touched it so I'm trying to re-learn and re-remember what I did.
I have op25 decoding, I re-established my feed with broadcastify, and updated my config file with the new feed info.
The problem is that the service for darkice streaming is stuck "activiating". When I manually execute the cfg I get
I recall creating a loopback device, but it seems something there isn't right today, and I've so little recollection as to how I did it the first time (plus I'm not at all knowledgeable about Linux compared to many) that I'm stuck.
I've pasted the input section of the cfg, and you can see it's loop0 - but looking further down at aplay -l you don't see that device. I also included asound.conf.
I hate being that "fix it for me" person, but I'm stuck. Any pointers would be really appreciated.
darkice-stream0.cfg (input section only)
aplay -l
/etc/modprobe.d/bcm2835.conf
asound.conf
I have op25 decoding, I re-established my feed with broadcastify, and updated my config file with the new feed info.
The problem is that the service for darkice streaming is stuck "activiating". When I manually execute the cfg I get
Code:
DarkIce.cpp:1273: can't open connector [0]
I recall creating a loopback device, but it seems something there isn't right today, and I've so little recollection as to how I did it the first time (plus I'm not at all knowledgeable about Linux compared to many) that I'm stuck.
I've pasted the input section of the cfg, and you can see it's loop0 - but looking further down at aplay -l you don't see that device. I also included asound.conf.
I hate being that "fix it for me" person, but I'm stuck. Any pointers would be really appreciated.
darkice-stream0.cfg (input section only)
Code:
# this section describes the audio input that will be streamed
[input]
device = loop0 # OSS DSP soundcard device for the audio input
#device = hw:Loopback,1,0
sampleRate = 22050 # sample rate in Hz. 22050 is the RR Standard
bitsPerSample = 16 # bits per sample. 16 for mono feeds, 32 for stereo feeds
channel = 1 # channels. 1 = mono, 2 = stereo
aplay -l
Code:
**** List of PLAYBACK Hardware Devices ****
card 0: b1 [bcm2835 HDMI 1], device 0: bcm2835 HDMI 1 [bcm2835 HDMI 1]
Subdevices: 4/4
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
card 1: Headphones [bcm2835 Headphones], device 0: bcm2835 Headphones [bcm2835 Headphones]
Subdevices: 4/4
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
/etc/modprobe.d/bcm2835.conf
Code:
softdep snd-bcm2835 post: snd-aloop
options snd-aloop enable=1 index=1 pcm_substreams=2
asound.conf
Code:
# output device
pcm.loopout0 {
type plug
slave.pcm "hw:Loopback,0,0"
}
# input device
pcm.loopin0 {
type dsnoop
ipc_key 686592
slave.pcm "hw:Loopback,1,0"
}
# duplex plug device
pcm.loop0 {
type plug
slave {
pcm {
type asym
playback.pcm "loopout0"
capture.pcm "loopin0"
}
}
}
# output device
pcm.loopout1 {
type plug
slave.pcm "hw:Loopback,0,1"
}
# input device
pcm.loopin1 {
type dsnoop
ipc_key 686593
slave.pcm "hw:Loopback,1,1"
}
# duplex plug device
pcm.loop1 {
type plug
slave {
pcm {
type asym
playback.pcm "loopout1"
capture.pcm "loopin1"
}
}
}