ALSA (Advanced Linux Sound Architecture)
sudo modprobe snd_aloop
mpc add alsa://hw:1,1
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
}
aplay -l
Docker 中使用 ALSA
--device /dev/snd