Skip to content
No new version for more than 90 days, so OpenNavo has paused recommending and installing it. Homebrew still offers this app.

LosslessSwitcher Release Notes

A macOS menu bar app that automatically matches an audio device’s sample rate to the lossless song playing in Apple Music.

CaskUtilities 2K

No new version for more than 90 days, so OpenNavo has paused recommending and installing it. Homebrew still offers this app.

Install command
brew install --cask losslessswitcher
30-day installs
36
1-year installs
429
Last 365 days
Latest version
2.0
Download size
827KB
zip
Release cadence
Irregular
0 releases in 30 days
  1. 3.0-beta1

    LatestPre-release

    GitHub Release

    Version 3?

    An early peek to the next version of LosslessSwitcher!

    IMPORTANT: a profile is needed, which can be downloaded and installed from https://eclecticlight.co/2023/03/08/removing-privacy-censorship-from-the-log/ Profile Direct Link: https://eclecticlight.co/wp-content/uploads/2023/03/enablelogprivatedata.zip

    You should always exercise caution by reading the above blog post to know what you're installing. Do also note that the profile is external, not made by me, and not signed by me either.

    This profile lets the app map sample rate data to whichever track its supposed to belong to, which helps with the https://github.com/vincentneo/LosslessSwitcher/issues/159 issue.

    Why is the profile needed? In Apple logs, some fields are marked as <private> without it. One of these fields that is privatised is the track name, which comes with the sample rate and bit depth log message.

    For beta 1, it will not work properly without the profile (I tried). This is because I'm slightly drained right now after a day spent on this, not logically clear how to infer which data belongs to which track, if that makes sense to you.

    As per always, I make no guarantees that it will work. Hopefully it does though.

  2. 2.0

    OpenNavo editorial Added to Homebrew

    Adds a bit-depth display and marks LosslessSwitcher v2 as no longer beta.

    Display
    Adds the bit-depth display from #189.
    Release
    LosslessSwitcher v2 is no longer considered beta.

    LosslessSwitcher 2.0 adds a bit-depth display provided in #189. Starting with this release, LosslessSwitcher v2 is no longer considered beta.

    Source: https://github.com/vincentneo/LosslessSwitcher/releases/tag/2.0

  3. 2.0-beta3

    GitHub Release

    Shell Script Support, Sample Rate Preferences

    Here are the new features of this release:

    • The remaining missing feature from LosslessSwitcher 1.x: Select Script, is back!
    • Suggestion from issue #197 is implemented as a user selectable preference, if they prefer to switch to the closest sample rate multiple that the system supports, rather than the nearest highest sample rate (e.g. 176.4kHz -> 88.2kHz, rather than 96kHz, if 96kHz is the maximum)
    • Merged fix from #194 (remains to be seen if it helps)

    Thanks to @jiangying000 and @goncalvesnelson for #194 & #197!

  4. 2.0-beta1

    Expand

    GitHub Release

    First Beta for Version 2.0

    Requires macOS Sequoia 15.0 or later.

    With this build, it should:

    • Not show a blank window
    • Work in macOS 15.4 (I've tested it myself with macOS 15.4.1)

    What doesn't work:

    • No "Select Script" menu for now

    I've named this version 2.0 so that it should be clear that for users on 14 or below, they should use v1, 15 and above for v2.

  5. 1.1.1-beta2

    Expand

    GitHub Release

    Sequoia Empty Window

    This beta release is yet another attempt to fix the empty window issue as mentioned by many in #146.

    Unfortunately, I wasn't able to replicate the exact issue, when tested with macOS 15.0 (24A335), so this release's 'fix' is based on yet another guess.

  6. 1.1.1-beta1

    Expand

    GitHub Release

    Built for Sequoia beta users

    This beta version is somewhat equivalent to version 1.1, build 18, with 2 differences:

    • It's built using the latest Xcode 16 beta 6 (i.e. macOS Sequoia SDK), just in case the high CPU usage/freeze have something to do with this.
    • Very minor code change as recommended by Xcode.

    In response to #146.

  7. 1.1.0-hqplayer2-prerelease

    Expand

    GitHub Release

    Menu for scripting

    In this release of LosslessSwitcher,

    A new menu has been added to allow for selected shell script to run, with the first argument being the latest sample rate.

    Notes

    • Selected shell scripts must have a shebang declared, such as #!/bin/bash
    • The script will run when the app launches for the first time.
    • The script file selection window may sometimes show underneath your current active window. (it's how macOS works)
  8. 1.1.0-hqplayer-prerelease

    Expand

    GitHub Release

    For HQ Player developers / Call via AppleScript

    Just a simple release that adds a way to obtain the latest sample rate via AppleScript. Effectively it covers #108 use case.

    Example:

    tell application "LosslessSwitcher"
    	set rate to get latest sample rate
    	do shell script "echo " & rate
    end tell
    

    Returns: "44100" on a 44.1kHz track.

    Note: on first call/launch, -1 will be returned.

    For context: https://community.roonlabs.com/t/using-any-audio-source-with-hqplayer-spotify-amazon-apple-music-youtube-music-deezer-soundcloud-2023/244358/352

  9. 1.1.0

    Expand

    GitHub Release Added to Homebrew

    Version 1.1

    I think the 'beta' of v1.1 has basically been dragged for way too long now, so build 18 will become the release build for v1.1.

    Improvements from v1.0.0

    • Improved sample rate detection
    • Option to explicitly select an audio device
    • Bit Depth detection mode
    • Option to run script when sample rate change
    • Ability for third party scripts to obtain latest sample rate via AppleScript
  10. 1.1.0-beta11

    Expand

    GitHub Release

    Switching improvements

    This release includes improvements with sample rate switching, from the changes in #106, which should see the reduction in doing unnecessary processing, on console messages that didn't contain the data needed for LosslessSwitcher.

    Special thanks to @bonifaido for this release!

  11. 1.1.0-beta9

    Expand

    GitHub Release

    Local file detection removal, optional bit depth

    This release follows the decision made in discussion #74, to discontinue local file sample rate switching. For more information on that, please refer to discussion #74.

    Bit depth switching, introduced in beta 8, is now an opt-in option. It can be found on the dropdown menu, just like other options. By default, it is switched off.

    Happy listening!

    Side note: Not that it matters much, but for some reason this build is about 300kb larger. Probably some change in Xcode's building.

  12. 1.1.0-beta8

    Expand

    GitHub Release

    Bit Depth switching support

    Happy New Year! Experimental build that switches both sample rate (e.g. 192kHz) and bit depth (e.g. 16-bit/24-bit), is now here.

    Those facing issue #2, please look here!

    Known Issues

    • Menu does not show bit depth info yet, please use Audio MIDI Setup to observe if bit depth has switched.
    • Detection may not be as good as prior builds (has yet to verify impact of detection, just a guess), as I've disabled a detection method via com.apple.coremedia messages due to lack of bit depth info.
    • Use of com.apple.coreaudio messages now, known to not provide info for certain sample rates in the past, but have yet to observe that in Ventura 13.1 so far.
    • Code is a mess right now!
  13. 1.1.0-beta7

    Expand

    GitHub Release

    Beta 7

    A few (minor) changes for this update.

    Changes

    1. Console messages have now been restricted to the Music process only. This is to fix #51. Since the app's core purpose is to serve Apple Music users, there are no guarantees that I would lift this restriction in the future.
    2. Minor UI fix.
    3. Toggle "Detect Local Track Rates" option is added. This option can be used to enable or disable AppleScript-based detection. Enabling it will use AppleScript to get sample rate for local tracks / playlist tracks, but disabling might be good if experienced issue #30.

    About AppleScript Support

    With the introduction of the toggle as mentioned in the above section, third point, users should be able to decide this for themselves, rather than fixating towards using a particular build.

  14. 1.1.0-beta6

    Expand

    GitHub Release

    Attempt to fix #32

    This is just a small update that aims to target issue #32.

    To test

    1. Explicitly select the device that you want to playback (not the auto "default device" selection).
    2. Check if device will continue to stick to your selected device, even in circumstances such as EQ / virtual device.
    3. (extra) Check if device will revert to previously selected device after plugging and unplugging said device.

    Known issues

    App device selection menu may glitch out showing 2 checkmarks on app restart, but that should just be a cosmetic issue right now, and should not impact usability. (will fix in future)

    About AppleScript Support

    • Only build 9 contains the AppleScript changes introduced in beta 5.
    • Builds 10 and 11 will not work for local file sample rate switching as a result.
    • This is due to issue #30.
  15. 1.1.0-beta5

    Expand

    GitHub Release

    Local file sample rate detection

    In this beta release,

    #15 should be fixed via AppleScript method provided by @fjolnir (thank you!). This should allow for sample rate detection for local files.

    As always, thanks for all your support in this project!

  16. 1.1.0-beta4

    Expand

    GitHub Release

    Selectable audio device

    There is now an option to select the audio device, overriding the default audio device currently selected. The addition of this release, hence, should solve issue #13.

    Release includes everything else introduced in v1.1 build 6/beta 3.

    A big thank you especially for @hatemosphere for the recent sponsor! Also thanks to sponsors @ckortekaas, @luisrjr and an anonymous sponsor for sponsoring this project earlier!

    Thanks for all your support!

  17. 1.1.0-beta3

    Expand

    GitHub Release

    Hybrid strategies

    This release (v1.1, build6, beta3) brings back interval checking from v1.0, and is combined with the audio track change check introduced in earlier betas.

    This hybrid approach should hopefully clear some issues with the audio track change detection method. Interval checking stops after about 10s after track change.

    In addition, a temporary cache should keep the sample rates of recently played tracks, in hopes that when previous tracks are played, if messages did not emit, at least the app can get the data from the cache.

    Sample rate should not change if system detects a new sample rate that is lower than the current one, if track is same.

    May help resolve issues in #17, #10, #8, #3

    A big thank you especially for @hatemosphere for the recent sponsor! Also thanks to sponsors @ckortekaas, @luisrjr and an anonymous sponsor for sponsoring this project earlier!

    Thanks for all your support!

  18. 1.1.0-beta2

    Expand

    GitHub Release

    Additional message detection

    • An additional detection route via Core Media messages have been implemented.
      • aimed at 192kHz/96kHz switching to 48kHz issue
      • there was an earlier iteration with Core Audio messages instead (build 4), but omitted due to message only showing up for 192kHz but not any lower sample rates.
    • abandoned pause/play issue due to #9 side effect
    • App now shows version and build to hopefully make releases less ambiguous?
      • build 3 = v1.1 beta 1
      • build 5 = v1.1 beta 2
      • build 4 = not released in binary form, but can be compiled if wished to (86edbda0710cf2e4078686cb81159e8a1f97d714)

    Failure to trigger may still occur.

    What to test: see if high sample rate audio like 192kHz ones are either switching correctly or not switching (i.e. no 48kHz sightings)

  19. 1.1.0-beta1

    Expand

    GitHub Release

    Some improvements

    • now uses private API 😨 (MediaRemote)
    • instead of timer based periodic checking, it should now only check console every time theres a play/pause event (still buggy. some times it doesn't trigger)
    • bug fix (#6, #5, #3, #1)

    Please do expect that sometimes the sample rate may not switch. The new checking method is still rather flaky.

    What to test: if audio above 48 kHz (such as 96/192kHz) correctly switches + that it shouldn't drop back to 48 kHz.

  20. 1.0.0

    Expand

    GitHub Release

    The first release.

    Please read the README carefully, before use. Tested on macOS 12.2 & 12.3.1, on Intel Macs, with a USB-input Amplifier as the audio device.

    App is signed and notarised.