A module for PulseAudio to support playing to sndio servers.
This is liberated from the OpenBSD PulseAudio port: http://cvsweb.openbsd.org/cgi-bin/cvsweb/ports/audio/pulseaudio/files/
This module supports playback only.
First install the dependencies:
$ sudo apt install pulseaudio pulsemixer build-essential libpulse-dev libtool libltdl-dev libsndio-devReboot the computer,
$ sudo rebootThen get the latest release of the repo,
$ wget 'https://github.com/OpenBSDGuy/pulseaudio-module-sndio/archive/refs/tags/v14.tar.gz' && tar -xvzf v14.tar.gz && cd pulseaudio-module-sndio-14Compile the code,
$ make && sudo make installThen load the sndio module and set the server,
$ pactl load-module module-sndio device="snd@100.64.1.2/0" record=false playback=trueMake it permanent by adding the following line to the /etc/pulse/default.pa file,
load-module module-sndio device="snd@100.64.1.2/0" record=false playback=trueThe IP must point to the IP address of the VMM host machine in NAT set up (Networking option-2 on FAQ16, which in this case is the OpenBSD machine.
It's best to disable the suspend-on-idle module, so comment or remove the following line from /etc/pulse/default.pa:
load-module module-suspend-on-idleLastly, set the default sink in the /etc/pulse/default.pa file:
set-default-sink sndio-sink