# vincentneo/LosslessSwitcher

Automated Apple Music Lossless Sample Rate Switching for Audio Devices on Macs.

Repository: https://github.com/vincentneo/LosslessSwitcher
Canonical: https://ross.abutalabs.com/products/losslessswitcher
Language: Swift
License: GPL-3.0
License Family: copyleft
Topics: applemusic, macos, audio, automation, lossless-music, menubar-app, oslog, sample-rate
Last push: 2026-06-07T07:07:54+00:00

## Health v2 (maintenance only)
Score: 84/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 86, release rhythm 72, longevity 100
- inputs: {"age_days": 1593, "days_push": 87, "days_rel": 186, "gap_med": 6, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1935, forks 136 (observed 2026-08-28T04:05:57.028684+00:00)

## What it is
A macOS menu bar application that automatically switches your audio device's sample rate to match the currently playing Apple Music Lossless track. It works by reading Apple Music's system logs (oslog) to detect each song's sample rate, then applying that rate to the active output device for bit-perfect playback.

## Use cases
- automatically switch mac audio device sample rate to match the song
- play apple music lossless and hi-res lossless at the correct sample rate
- bit-perfect playback from apple music on an external dac
- avoid manually changing sample rates in audio midi setup
- see the current playing sample rate in the macos menu bar
- match dac sample rate to each track in a lossless playlist

## When to choose
- You use the Apple Music app on macOS and want lossless or hi-res tracks played at their native sample rate
- You own a DAC or audio interface and want sample rate switched per song without opening Audio MIDI Setup
- You want a lightweight menu bar utility that shows the sample rate of the current track

## When to avoid
- You don't use Apple Music - other lossless services like Tidal or Qobuz are not supported
- You need sample rate switching on Linux or Windows, since this is macOS-only
- You cannot tolerate brief audio interruptions when the sample rate changes between tracks
- You need accurate bit depth switching - enabling it reduces detection accuracy and is not recommended

## Facets
- artifact type: application
- maturity: active
- function: audio-processing, workflow-automation
- domain: apple-ecosystem, desktop-applications, media
- platform: -
- tags: apple-music, lossless-audio, hi-res-lossless, sample-rate-switching, menubar-app, audio-devices, dac, bit-perfect, oslog, core-audio, audio, automation, macos, desktop

## Member repositories
- vincentneo/LosslessSwitcher (main) score 84

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:57.028684+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:08:28.120507+00:00, confidence not recorded.
  - readme: https://github.com/vincentneo/LosslessSwitcher (fetched 2026-08-28T04:05:57.028684+00:00, sha a72d57f2b40d)
- Data as of 2026-08-30T08:39:29.467469+00:00.
