yes - the key here is the ALSA loopback capabilities. so first you need to enable loopback device in ALSA, which will appear in the PulseAudio Volume Control as an input device (and an output device as well).
sudo modprobe snd_aloop
this device then can be added to an mpd server:
mpc add alsa://hw:1,1
where hw:1,1 is the loopback input device can be listed with the command aplay -l
then you need to configure a http output plugin for the mpd. the following example would look like in /etc/mpd.conf
audio_output {
type "httpd"
name "My HTTP Stream"
encoder "vorbis" # optional, vorbis or lame
port "8000"
bind_to_address "192.168.1.38" # optional, IPv4 or IPv6
quality "5.0" # do not define if bitrate is d$
# bitrate "128" # do not define if quality is d$
format "44100:16:1"
max_clients "0" # optional 0=no limit
}
that is it. Select the looback device for your audio source in Volume Control Playback tab.
Finally, you can use VLC or any other stream renderer at the destination point using the httpd url address: http://192.168.1.38:8000