Playing music over network with sndio

On the host with loudspeakers add following line into /etc/rc.conf.local:

sndiod_flags="-L-"

and restart sndiod(1)

On the host, you wish to play music from, set a porper environment variable:

AUDIODEVICE=snd@hostname/0

and you are ready to play music over network. Try it.

For more information read sndio(7).

By Dimitri Sokolyuk
Related articles