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.
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: