LE is running on my PC and I'd like to have Kodi play the audio from the PC soundcard's line input. For this I intend to use pulseaudio's module-rtp-sink. I got this idea from the source code of the librespot addon by awiouy. He uses pulseaudio to loop audio from librespot into Kodi for playback. I've seen here that he runs
pactl load-module module-rtp-send source="$LS_SINK.monitor" destination_ip=127.0.0.1 port="$LS_PORT" source_ip=127.0.0.1 > /dev/null
and then has Kodi play the stream generated by pulseaudio.
I'd like to do something similar where I have module-rtp-sink send audio from my line input as 'source' and have Kodi play the generated RTP stream.
So far I have managed to load the pulse module and have it read from the soundcard's input. What I did not figure out yet is how to have Kodi play the RTP stream from the loopback interface. Can someone point me in the right direction? Thanks!!