marioortizmanero / polybar-pulseaudio-control

A feature-full Polybar module to control PulseAudio
MIT License
471 stars 49 forks source link

Duplicate & useless events from `pactl subscribe` #20

Closed marioortizmanero closed 2 years ago

marioortizmanero commented 4 years ago

This is a single 2% volume increase:

❯ pactl subscribe
Event 'new' on client #217
Event 'remove' on client #217
Event 'new' on client #218
Event 'remove' on client #218
Event 'new' on client #219
Event 'change' on client #219
Event 'change' on sink #0
Event 'remove' on client #219
Event 'new' on client #220
Event 'remove' on client #220
Event 'new' on client #221
Event 'remove' on client #221
Event 'new' on client #222
Event 'remove' on client #222

It also creates events for currently useless things, like new songs playing and such. Here's the output when a new song starts on Spotify:

❯ pactl subscribe
Event 'change' on sink-input #0
Event 'change' on sink #0
Event 'change' on sink #0
Event 'change' on sink-input #0
Event 'new' on client #224
Event 'remove' on client #224
Event 'new' on client #225
Event 'remove' on client #225
Event 'new' on client #226
Event 'remove' on client #226
Event 'new' on client #227
Event 'remove' on client #227
Event 'new' on client #228
Event 'remove' on client #228
Event 'new' on client #229
Event 'remove' on client #229
Event 'new' on client #230
Event 'remove' on client #230
Event 'new' on client #231
Event 'remove' on client #231
Event 'new' on client #232
Event 'remove' on client #232
Event 'new' on client #233
Event 'remove' on client #233
Event 'new' on client #234
Event 'remove' on client #234
Event 'new' on client #235
Event 'remove' on client #235

Not sure if there's anything I can do here, but I should investigate regardless.

marioortizmanero commented 2 years ago

I would say this was fixed with #65 and #67