Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pulseaudio: volume indicator update on default output switch #3464

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

findus
Copy link

@findus findus commented Jul 22, 2024

Right now the volume indicator does not update when the default output device changes.

I fixed it by saving the current default sink (and its state) and check on every sink-update-callback if the original sink is still present and active (Idle or Running).

If that is the case, every callback from other sinks are ignored.

Example:
Top Bar: new
Bottom Bar: current master

Fixes: #605

example2.mp4

findus and others added 8 commits July 22, 2024 12:17
on sinkInfo callbacks, the default sink now has highest priority.
That fixes an issue that the volume indicator is not updated when
the changes the default output to another devices.

added PA_SINK_IDLE as valid state. PA_SINK_RUNNING is only true
if any sound output is happening on sink switch. Indicator should
also update when no sound is being played.
workflow dispatch to debug failing workflow manually
@findus
Copy link
Author

findus commented Jul 23, 2024

fixed clang format, but had to touch another file unrelated to my changes to make it work

@Alexays Alexays force-pushed the master branch 2 times, most recently from d623a89 to a4d31ab Compare September 13, 2024 07:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pulseaudio module only detects new default device after volume change
1 participant