Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Aug 2023 17:17:54 -0300
From:      Jonas Lopes <jonasbsd@gmail.com>
To:        freebsd-xfce@freebsd.org
Subject:   Audio Mixer loses Sndio reference when switching output on the fly
Message-ID:  <CAFuq9EwH%2BHYfVtDtk%2Ba8r-BdRjh6J-Q_L5k1=E3uct8taJt59w@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
--0000000000004d94f306020a7a33
Content-Type: text/plain; charset="UTF-8"

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

--0000000000004d94f306020a7a33
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div style=3D"box-sizing:border-box;font-variant-ligatures=
:none;margin-top:6px;color:rgb(51,50,56);font-family:&quot;GitLab Sans&quot=
;,-apple-system,BlinkMacSystemFont,&quot;Segoe UI&quot;,Roboto,&quot;Noto S=
ans&quot;,Ubuntu,Cantarell,&quot;Helvetica Neue&quot;,sans-serif,&quot;Appl=
e Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,&quot;Segoe UI Symbol&quot;,=
&quot;Noto Color Emoji&quot;;font-size:14px;font-style:normal;font-variant-=
caps:normal;font-weight:400;letter-spacing:normal;text-align:left;text-inde=
nt:0px;text-transform:none;word-spacing:0px;white-space:normal;background-c=
olor:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:i=
nitial"><div style=3D"box-sizing:border-box;font-variant-ligatures:none;col=
or:rgb(51,50,56)"><p dir=3D"auto" style=3D"box-sizing:border-box;font-varia=
nt-ligatures:none;margin:0px 0px 16px;color:rgb(51,50,56);text-align:initia=
l">The open Audio Mixer (xfce4-mixer-full) loses the Sndio reference when I=
 switch the output on the fly.</p><p dir=3D"auto" style=3D"box-sizing:borde=
r-box;font-variant-ligatures:none;margin:0px 0px 16px;color:rgb(51,50,56);t=
ext-align:initial">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=20
reference and stops working.</p><p dir=3D"auto" style=3D"box-sizing:border-=
box;font-variant-ligatures:none;margin:0px 0px 16px;color:rgb(51,50,56);tex=
t-align:initial">Steps:</p><ol dir=3D"auto" style=3D"box-sizing:border-box;=
font-variant-ligatures:none;margin:0px 0px 16px;padding:0px;text-align:init=
ial"><li style=3D"box-sizing:border-box;font-variant-ligatures:none;line-he=
ight:1.6em;margin-left:28px;padding-left:0px;margin-top:0px"><p style=3D"bo=
x-sizing:border-box;font-variant-ligatures:none;margin:0px 0px 16px;color:r=
gb(51,50,56)">include the Audio Mixer item in the Panel;</p></li><li style=
=3D"box-sizing:border-box;font-variant-ligatures:none;line-height:1.6em;mar=
gin-left:28px;padding-left:0px"><p style=3D"box-sizing:border-box;font-vari=
ant-ligatures:none;margin:0px 0px 16px;color:rgb(51,50,56)">Set the Audio M=
ixer properties to &quot;Sndio Volume Control&quot; and the Track Mixer to =
&quot;output&quot;. Click &quot;Close&quot;.</p></li><li style=3D"box-sizin=
g:border-box;font-variant-ligatures:none;line-height:1.6em;margin-left:28px=
;padding-left:0px"><p style=3D"box-sizing:border-box;font-variant-ligatures=
:none;margin:0px 0px 16px;color:rgb(51,50,56)">Play
 a song on Youtube with Chromium and leave it playing until the end of=20
the test. Change the volume in Audio Mixer. It will work!</p></li><li style=
=3D"box-sizing:border-box;font-variant-ligatures:none;line-height:1.6em;mar=
gin-left:28px;padding-left:0px"><p style=3D"box-sizing:border-box;font-vari=
ant-ligatures:none;margin:0px 0px 16px;color:rgb(51,50,56)">In
 Terminal, enter the command &quot;sndioctl server.device=3D&lt;PCM_NUMBER&=
gt;&quot;
 and change it to a PCM number different from the current one. For=20
example, if it&#39;s on USB (3), switch to HDMI (2).</p></li></ol><blockquo=
te dir=3D"auto" style=3D"box-sizing:border-box;font-variant-ligatures:none;=
margin:0.5rem 0px;font-size:inherit;color:rgb(83,81,88);padding-top:0.5rem;=
padding-bottom:0.5rem;padding-left:1.5rem;text-align:initial"><p style=3D"b=
ox-sizing:border-box;font-variant-ligatures:none;margin:0px;color:inherit;l=
ine-height:1.5">Make sure you have mapped all PCM outputs to Sndio!!!</p></=
blockquote><ol start=3D"5" dir=3D"auto" style=3D"box-sizing:border-box;font=
-variant-ligatures:none;margin:0px 0px 16px;padding:0px;text-align:initial"=
><li style=3D"box-sizing:border-box;font-variant-ligatures:none;line-height=
:1.6em;margin-left:28px;padding-left:0px;margin-top:0px">Try changing the v=
olume in the Audio Mixer. It will not work!!!</li></ol><p dir=3D"auto" styl=
e=3D"box-sizing:border-box;font-variant-ligatures:none;margin:0px 0px 16px;=
color:rgb(51,50,56);text-align:initial">This scenario also works with Audio=
 Mixer open.</p><p dir=3D"auto" style=3D"box-sizing:border-box;font-variant=
-ligatures:none;margin:0px;color:rgb(51,50,56);text-align:initial">Best,</p=
></div></div><br><div dir=3D"ltr" class=3D"gmail_signature"><div dir=3D"ltr=
"><div>
---<br>Jonas Lopes</div></div></div><br clear=3D"all"><br><span class=3D"gm=
ail_signature_prefix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signatu=
re" data-smartmail=3D"gmail_signature"><div dir=3D"ltr"><div>Jonas Lopes</d=
iv></div></div></div>

--0000000000004d94f306020a7a33--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFuq9EwH%2BHYfVtDtk%2Ba8r-BdRjh6J-Q_L5k1=E3uct8taJt59w>