AdShh started as a small Windows utility for silencing Spotify ad breaks. The interesting engineering problem turned out to be less about muting audio and more about restoring it safely.

A mute flag is not an ownership flag

A utility should not assume that every muted audio session belongs to it. A user can mute an application manually, or another application can change its mixer state. Restoring everything indiscriminately would overwrite the user's preferences.

The audio module separates mute ownership from external and user mutes. The desktop flow is:

Media/window signal -> classification -> mute decision -> audio-session worker -> mixer state readback -> owned-session recovery 

The Windows integration uses Go, Win32, Core Audio, COM and WinRT. Audio COM calls and their owned references stay on a dedicated locked OS thread. The UI reads snapshots instead of owning those audio objects.

Treat recovery as part of the feature

A recovery journal and explicit retry path matter if audio state changes during a session. The project keeps this logic in a separate module so it can be tested independently. Artwork decoding is bounded, and background storage uses file replacement rather than treating every UI event as a synchronous disk write.

Desktop and browser are separate boundaries

The optional Chromium MV3 extension operates at tab level. Native Messaging reports aggregate counts; the browser is not allowed to control desktop audio through those reports. The extension also works independently of the desktop utility.

What has actually been tested?

The repository documents 208 Go tests and subtests, 12 Chromium tests, and 10 update-trust checks that passed locally. An earlier RC1 build underwent installation, uninstall and settings checks. The published package still needs a fresh installation test and measurement of detection latency on real ads.

This is a release candidate, not a production-ready claim. The installer is unsigned, and automatic muting may conflict with Spotify's terms. AdShh is independent and not affiliated with Spotify. The source is publicly visible; its license is not yet finalized.

Feedback welcome

I would especially like feedback from Windows developers on ownership tracking, COM thread boundaries and recovery after unexpected termination.

This post was prepared with AI assistance using the project's documented implementation and test results.