[op25-dev] Audio to Darkce/IceCast Server - No audio???? No tags, Local audio good.

op25 at zellners.com op25 at zellners.com
Wed Jan 2 20:35:04 UTC 2019


Quoting op25 at zellners.com:

> OK... I've put my RPi3B+ to work...

> The problem is feeding audio to my IceCast server..  :( :( :(
>
> I installed a MP3 capable Darkice with its deps... its starts up


Trying on the laptop... same things tags, NO AUDIO. ** LOCAL AUDIO **  
is fine. URRGRRRRGGGhhhh!

I modified the instructions for the laptop to ensure that the indexes  
match.ie: audio card is ALSA 0 and Loopbacks are ALSA 1


./rx.py --args 'rtl' -N 'LNA:47' -S 2400000 -f 8xx.xxxxe6 -o 25000 -q  
72 -v 10  -T trunk.tsv -V -2 -l http:192.168.0.26:8080 -M tags.json
-O loop0 2>sterr.2
^^^^^^^^^^

either the audio is not getting to the loopback or darkice is not  
getting that... or both I guess...

when I use -U I get local audio with out using nc | aplay.....

or I can use -W IP and then nc| aplay etc...

I've run out of ideas to try on the various foibles of ALSA to find  
where this audio is going or not going... I know place its not going  
loopback!

Any ideas?????????????????????????????????????????????? SHort of  
running a cable from the speakers out to a USB audio stick and into  
another PI! ! ! ! ??????



~$ arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC268 Analog [ALC268 Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
card 1: Loopback [Loopback], device 0: Loopback PCM [Loopback PCM]
   Subdevices: 7/8
   Subdevice #0: subdevice #0
   Subdevice #1: subdevice #1
   Subdevice #2: subdevice #2
   Subdevice #3: subdevice #3
   Subdevice #4: subdevice #4
   Subdevice #5: subdevice #5
   Subdevice #6: subdevice #6
   Subdevice #7: subdevice #7
card 1: Loopback [Loopback], device 1: Loopback PCM [Loopback PCM]
   Subdevices: 8/8
   Subdevice #0: subdevice #0
   Subdevice #1: subdevice #1
   Subdevice #2: subdevice #2
   Subdevice #3: subdevice #3
   Subdevice #4: subdevice #4
   Subdevice #5: subdevice #5
   Subdevice #6: subdevice #6
   Subdevice #7: subdevice #7



$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC268 Analog [ALC268 Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
card 1: Loopback [Loopback], device 0: Loopback PCM [Loopback PCM]
   Subdevices: 8/8
   Subdevice #0: subdevice #0
   Subdevice #1: subdevice #1
   Subdevice #2: subdevice #2
   Subdevice #3: subdevice #3
   Subdevice #4: subdevice #4
   Subdevice #5: subdevice #5
   Subdevice #6: subdevice #6
   Subdevice #7: subdevice #7
card 1: Loopback [Loopback], device 1: Loopback PCM [Loopback PCM]
   Subdevices: 8/8
   Subdevice #0: subdevice #0
   Subdevice #1: subdevice #1
   Subdevice #2: subdevice #2
   Subdevice #3: subdevice #3
   Subdevice #4: subdevice #4
   Subdevice #5: subdevice #5
   Subdevice #6: subdevice #6
   Subdevice #7: subdevice #7

I've used all combos of things in darkice and rx.py for the name of  
the device, no audio

loop0, loop1, hw:1,0, hw:1,1 hw:Loopback1, hw:Looopback0 etc...

Silence.

Local audio works great.


/etc/modules
~$ cat /etc/modules
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.

snd_hda_intel
snd-aloop
options snd-aloop enable=1 index=1 pcm_substreams=2


/etc/asound.conf

$ cat /etc/asound.conf
# 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"
     }
   }
}







More information about the op25-dev mailing list