greshake / i3status-rust

Very resourcefriendly and feature-rich replacement for i3status, written in pure Rust
GNU General Public License v3.0
2.85k stars 470 forks source link

sound: reconnect to pa #1889

Closed MaxVerevkin closed 1 year ago

MaxVerevkin commented 1 year ago

Fixes #334

Ideally this should be reflected in the UI, but for now I suppose it is better than just stalling the block.

Also, apparently there is a bug in libpulse_binding as it is possible to segfault w/o unsafe.

MaxVerevkin commented 1 year ago

Is lowlevel PA protocol documented? Is there something like https://wayland-book.com/protocol-design/wire-protocol.html but for pulseaudio?

bim9262 commented 1 year ago

While I wasn't able to grok lines 201-210 the change looked good overall and my preliminary testing looks good too. Now if only players I use would also reconnect...