snd device switching

From: Ilya Nerubatskiy <ilya.nerubatski_at_signalmakers.com>
Date: Thu, 26 Sep 2019 15:20:38 +0300
Hello.
Has sndio or some related apps feature to switch between sound output
devices in real-time (on the fly)?

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 I am
playing 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
Received on Thu Sep 26 2019 - 14:20:38 CEST

This archive was generated by hypermail 2.3.0 : Fri Sep 27 2019 - 01:33:05 CEST