SecUpwN / Spotify-AdKiller

Your Party with Spotify - without ads!
https://github.com/SecUpwN/Spotify-AdKiller
GNU General Public License v3.0
845 stars 84 forks source link

Make sure to mute all sink inputs as Spotify spawn multiple sound processes #121

Closed ArthurHoaro closed 4 years ago

ArthurHoaro commented 4 years ago

Currently get_pactl_nr() only returns the first matching index, but it Spotify tends to create new playback streams, letting previous ones idling. So the first stream is mute, while the ad is actually playing in the latest one.

This change make sure that all Spotify streams are (un)muted.

Example after ~15min: