Repository navigation
Releases
Releases · Kathir-D/Sonar
v0.1.7
Full Changelog: v0.1.6...v0.1.7
v0.1.6
Apple system sounds no longer pause your music
A notification ding, an alert beep, the screenshot shutter or the charging chime no longer pauses Spotify. A short sound from any app, however short, still does.
- New switch: Preferences › Auto-Pause › Ignore Apple system sounds, on by default.
- Decides by who is playing, not by length or loudness. Every Apple system sound, including Notification Center sounds, is played by
/usr/sbin/systemsoundserverd, and the charging chime byPowerChime. Sonar identifies those players by their executable path on the SIP-protected system volume (proc_pidpath, about 1 µs per process), so no app can pass itself off as one. An app playing Apple's ownGlass.aiffitself still pauses the music. - Fixes the old exclusion. It matched daemon names through
NSRunningApplication, which has no name for daemons, so it never matched and every notification paused the music. - Both detectors (Core Audio tap and process poll) apply the rule.
Verified end to end
scripts/system-sounds-smoke.py ran against the real app and the real Spotify on the Instant preset (0.1 s of sound is enough to pause):
| Trials | Result |
|---|---|
29 Apple system sounds: beeps, alerts, all 14 sounds in /System/Library/Sounds, a burst of six, screenshots, real Notification Center alarms. Each one was proven to have played |
29 / 29 never paused |
15 short app sounds: a 0.4 s tone, Glass.aiff via afplay, Ping.aiff via NSSound |
15 / 15 paused and resumed, median 0.41 s |
Control: Glass.aiff through systemsoundserverd with the switch off |
2 / 2 paused |
Engine tests: 318, green.
Install / upgrade
brew update && brew upgrade --cask sonarThe demo video (sonar-0.1.6-demo.mp4) is attached below.
Full changelog: v0.1.5...v0.1.6
v0.1.5
v0.1.4
v0.1.3
v0.1.2
v0.1.1
v0.1.0
Full Changelog: https://github.com/Kathir-D/Sonar/commits/v0.1.0
