Skip to content

pulseaudio: volume indicator update on default output switch - #3464

Merged
Alexays merged 7 commits into
Alexays:masterfrom
findus:pulseaudio-default-sink
Oct 25, 2024
Merged

Alexays merged 7 commits into
Alexays:masterfrom
findus:pulseaudio-default-sink

Conversation

@findus

@findus findus commented Jul 22, 2024

Copy link
Copy Markdown
Contributor

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

findus commented Jul 23, 2024

Copy link
Copy Markdown
Contributor Author

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
findus and others added 7 commits September 21, 2024 13:25
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
findus force-pushed the pulseaudio-default-sink branch from 2ce7620 to 57156bc Compare September 21, 2024 11:31
@Gwenodai

Copy link
Copy Markdown

Is there a reason why this still hasn't been merged into main? It's a bit odd that you can't swap outputs with pavucontrol if you want waybar to recognise it.

@Alexays
Alexays merged commit 9d89dda into Alexays:master Oct 25, 2024
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

3 participants