abertschi / ad-free

A modularized audio ad blocker for Android
https://abertschi.ch/blog/2022/building-adfree/
Apache License 2.0
277 stars 19 forks source link

ISSUE with detection function using two different audio sources #90

Open makoto-kokoroki opened 2 years ago

makoto-kokoroki commented 2 years ago

Issue: This app will not mute the ad source unless it is coming from one single source.

SCENARIO: So if you stream music via Spotify to your bluetooth speaker and decide to watch something on your phone or play a game. The app will mute the audio of the app currently streaming audio to the phones speakers but not mute the source for a bluetooth speaker. If you play the audio streams to one device (phone, bluetooth, wired speaker, etc) it will correctly detect the right app to mute. But it won't work if the music streaming app that has ads is separated from the phone source while the phone is still using other apps that produce sound.

I hope that makes sense... If you wish to replicate this then set the spotify app to play from a bluetooth speaker and load up a game on your phone with its output directed via your phone.

makoto-kokoroki commented 2 years ago

I think a possible solution might be to add the function to make the app ignore other apps that the use can input somewhere