2016-08-20 17:48:40 +02:00
|
|
|
Sndio's OSS support (i.e. local playback/recording support) is highly
|
2016-08-03 08:15:41 +02:00
|
|
|
experimental. If you run into problems please file a bug at
|
|
|
|
https://github.com/t6/sndio or send an email to t+sndio@tobik.me.
|
|
|
|
|
2016-08-20 17:48:40 +02:00
|
|
|
Enable the sndiod server with:
|
2016-08-03 08:15:41 +02:00
|
|
|
|
2016-08-20 17:48:40 +02:00
|
|
|
sysrc sndiod_enable=YES
|
2016-08-03 08:15:41 +02:00
|
|
|
service sndiod start
|
|
|
|
|
2016-08-20 17:48:40 +02:00
|
|
|
Please note that by default sndiod is configured with a monitoring
|
|
|
|
sub-device i.e. a device through which you can record everything that
|
|
|
|
plays through sndiod:
|
2016-08-03 08:15:41 +02:00
|
|
|
|
2016-08-20 17:48:40 +02:00
|
|
|
aucat -f snd/0.monitor -o recording.wav
|
|
|
|
|
|
|
|
Make sure you override sndiod_flags if this is not wanted:
|
|
|
|
|
|
|
|
sysrc sndiod_flags=""
|
|
|
|
|
|
|
|
If you want clients to auto-play to your remote sndio server set
|
|
|
|
sndiod_flags accordingly:
|
|
|
|
|
|
|
|
sysrc sndiod_flags="-f snd@remotehost/0"
|
2016-08-03 08:15:41 +02:00
|
|
|
|
2016-08-20 17:48:40 +02:00
|
|
|
Alternatively you can always set the AUDIODEVICE environment variable
|
|
|
|
so clients know where to stream to:
|
2016-08-03 08:15:41 +02:00
|
|
|
|
|
|
|
export AUDIODEVICE=snd@remotehost/0
|
|
|
|
|
2016-08-20 17:48:40 +02:00
|
|
|
There is little sndio support in the FreeBSD ports tree right now. If
|
|
|
|
your favourite port is missing support please take a look at the fork
|
|
|
|
at https://github.com/t6/freebsd-ports-sndio and
|
|
|
|
https://github.com/t6/freebsd-ports-sndio/wiki/Status which contains
|
|
|
|
patches that enable sndio support in various ports.
|
2016-08-03 08:15:41 +02:00
|
|
|
|
|
|
|
audio/pulseaudio-module-sndio is a PulseAudio module that allows you
|
|
|
|
to play to your sndio server. This is useful for ports that have
|
|
|
|
PulseAudio support but no direct sndio support.
|