Like me, you might be struggling a lot with sound, ever since pulseaudio came up. However, there actually is an alternative that sparked out of the OpenBSD community. It's a light weight and just works.
Sadly it isn't what applications use per default, so one is currently forced to use ports instead of binary packages.
In /etc/make.conf (or /usr/local/etc/poudriere.d/make.conf if you are using poudriere) add the following options:
Now recompile your packages and that's it.
While the package comes with sndiod (via
One reason to use sndiod is to control volumes per application. For this this simply activate it as described in the previous paragraph (sysrc and start it) and install the
The little command is straight forward to use:
Run without arguments to list applications and current volums:
Run with one or more arguments to set the volume:
Please keep in mind that the applications need to be connected with sndiod. In other words: The need to be started after sndiod, so if you initially don't see some application either restart it or restart your system (with sndiod enabled in rc.conf).
EDIT: Mention PORTAUDIO
EDIT2: Mention aucatctl(1)
Sadly it isn't what applications use per default, so one is currently forced to use ports instead of binary packages.
In /etc/make.conf (or /usr/local/etc/poudriere.d/make.conf if you are using poudriere) add the following options:
Code:
OPTIONS_SET=SNDIO # ... and what you might already have
OPTIONS_SET+=PORTAUDIO # Portaudio supports sndio, so more software supports sndio (gqrx is an example)
OPTIONS_UNSET= PULSEAUDIO PULSE ALSA # ... and what you might already have
Now recompile your packages and that's it.
While the package comes with sndiod (via
sysrc sndiod_enable=YES
and service sndiod start
) this isn't necessary for most users and I personally don't ever start it. See sndiod(8)for more details.One reason to use sndiod is to control volumes per application. For this this simply activate it as described in the previous paragraph (sysrc and start it) and install the
audio/aucatctl
port (or package).The little command is straight forward to use:
Run without arguments to list applications and current volums:
aucatctl
Run with one or more arguments to set the volume:
aucatctl master=85 mplayer0=100
Please keep in mind that the applications need to be connected with sndiod. In other words: The need to be started after sndiod, so if you initially don't see some application either restart it or restart your system (with sndiod enabled in rc.conf).
EDIT: Mention PORTAUDIO
EDIT2: Mention aucatctl(1)
Last edited: