Xeroday / Spotify-Ad-Blocker

EZBlocker - A Spotify Ad Blocker for Windows
https://www.ericzhang.me/projects/spotify-ad-blocker-ezblocker/
GNU General Public License v3.0
1.85k stars 192 forks source link

EZBlocker trouble with non-default Spotify audio routing #236

Open regexaurus opened 3 years ago

regexaurus commented 3 years ago

I'm using EZBlocker 1.7.6.0. Spotify has no internal support for selecting audio playback device, but in Windows 10 sound settings, under Advanced sound options, you can click App volume and device preferences to route app audio to a specific playback device.

image

If I use this feature to route Spotify audio to a non-default playback device, EZBlocker no longer blocks ads. If EZBlocker is launched before routing Spotify audio to a non-default playback device, EZBlocker status (e.g. "Playing: <some artist...") is stuck as it was when Spotify's audio was re-routed. If EZBlocker is launched after routing Spotify audio to a non-default playback device, EZBlocker status is stuck at "Loading..." I recognize this is a somewhat obscure problem, and perhaps considered an EZBlocker feature 😄 but it would be nice if EZBlocker could be updated to work in this scenario.

Marcostox commented 3 years ago

The problem could be due to the fact that ezblocker operates on the standard audio device and cannot mutate the spotify that is on another one. See if I can take a look at this case and find a solution.

Barley194 commented 3 years ago

Is it possible to change in code? or implement it as a additional feature ?