Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug fix when having multiple audio sinks to not confuse processes #5

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

smarkoco
Copy link
Contributor

@smarkoco smarkoco commented Feb 27, 2024

The code would accidentally mute my browser YouTube audio sink when a spotify ad would come on. Now it properly identifies the PulseAudio sink index corresponding to Spotify, by using pacmd list-sink-inputs, then grep to find lines near "application.name = spotify", then using grep and awk to extract the proper sink index to mute

EDIT: In the final commit, it also now loops through all spotify sinks (there can be multiple) and mutes/unmutes all of them, therefore blocking ads more powerfully than ever before

@smarkoco
Copy link
Contributor Author

Accidentally added a .bak file which should be deleted

@smarkoco
Copy link
Contributor Author

latest change allows it to detect Chromium commercials now

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.

1 participant