Hello.
The task is to switch between sound output devices in real-time (on the fly).
Only sndio and/or oss can be used.
To /boot/loader.conf already added:
Switching with
The task is to switch between sound output devices in real-time (on the fly).
Only sndio and/or oss can be used.
To /boot/loader.conf already added:
Code:
snd_driver_load="YES"
sound_load="YES"
cuse_load="YES"
Switching with
sysctl hw.snd.default_unit
only works the next time you play a sound (it doesn’t work on the fly). # cat /dev/sndstat
Code:
pcm0: <ATI R6xx (HDMI)> (play)
pcm1: <Analog Devices AD1882 (Analog)> (play/rec) default
pcm2: <Analog Devices AD1882 (Front Analog Headphones)> (play)
pcm3: <USB audio> (play/rec)
# uname -a
Code:
FreeBSD testInstall 12.0-RELEASE-p10 FreeBSD 12.0-RELEASE-p10 GENERIC amd64