Audio Mixer loses Sndio reference when switching output on the fly

From: Jonas Lopes <jonasbsd_at_gmail.com>
Date: Thu, 03 Aug 2023 20:17:54 UTC
The open Audio Mixer (xfce4-mixer-full) loses the Sndio reference when I
switch the output on the fly.

When I add the Audio mixer item in the Dashboard, it works great. But when
I change the output, from USB to HDMI for example, the mixer loses the
reference and stops working.

Steps:

   1.

   include the Audio Mixer item in the Panel;
   2.

   Set the Audio Mixer properties to "Sndio Volume Control" and the Track
   Mixer to "output". Click "Close".
   3.

   Play a song on Youtube with Chromium and leave it playing until the end
   of the test. Change the volume in Audio Mixer. It will work!
   4.

   In Terminal, enter the command "sndioctl server.device=<PCM_NUMBER>" and
   change it to a PCM number different from the current one. For example, if
   it's on USB (3), switch to HDMI (2).

Make sure you have mapped all PCM outputs to Sndio!!!


   1. Try changing the volume in the Audio Mixer. It will not work!!!

This scenario also works with Audio Mixer open.

Best,

---
Jonas Lopes


-- 
Jonas Lopes