Repository navigation
2.2.0 Beta 1 — Startup Recovery & Source/Output
Pre-releasemacOS 27 兼容性改造版:2.2.0 Beta 1
这是 cchen7 基于 vincentneo/LosslessSwitcher 维护的兼容性 fork,不是原作者的官方发布,也不是上游的 3.0 beta。感谢 Vincent Neo、上游贡献者及 vincentneo/LosslessSwitcher#225 的作者。
版本:2.2.0,build 28,Apple Silicon / ARM64。
本次改进
- 播放中启动恢复:Music 已在播放、没有新的解码日志时,可读取当前曲目的采样率并恢复设备设置,无需先换曲。
- Source / Output 分开展示:音源格式与硬件实际格式分别显示。位深切换关闭时,仍会显示真实输出位深,并提示采样率或位深降低。
- 不猜未知字段:Music 元数据只能补充报告的采样率,不能证明 codec 或源位深。此时显示
?,只请求采样率,不强行补成 16/24/32 bit;输出始终以硬件回读为准。 - 读取在后台进行,针对已运行的 Music PID,使用统一的三秒事件预算,并检查曲目身份、播放状态及请求 generation,拒绝过期结果。
Music 访问权限
自动恢复不会主动弹出新的权限请求。首次需要时,请在菜单选择 Read Current Track from Music...,允许本机的 Music 自动化访问;之后启动可以复用该授权。
这只是本机系统权限,不需要输入 Apple ID 或密码,不会创建公证 profile,也不需要安装解除日志隐私遮罩的系统描述文件。本版本仅增加该功能确实需要的 Apple Events Automation entitlement,没有添加调试或关闭库校验的例外。
签名与 Apple 公证
- 使用维护者已有的 Developer ID Application 证书签名,内嵌框架与应用逐层处理,不使用
--deep。 - Apple 公证已通过(Accepted),公证票据已附加并验证,安装副本通过 Gatekeeper,来源为 Notarized Developer ID。
- ZIP 从已附加公证票据的应用重新生成,并附 SHA-256 校验文件。
已验证范围与限制
在 M4 Max + macOS 27.0.1 + YULONG Audio DSD DAC OT 上,使用真实 Apple Music 订阅音源:
- 持续播放 192 kHz 时启动,DAC 从预设的 44.1 kHz 自动恢复为 192 kHz;测试时已有可用 Music 授权。
- 显式切歌完成 44.1 / 96 / 192 kHz 转换,音源、应用读值与硬件回读对应。
- 能区分 96 kHz / 24-bit 音源与实际保留的 96 kHz / 16-bit 输出。
- 暂停/恢复及开启位深切换后的 16/24-bit 输出通过;离线回归覆盖过期请求、同名不同录音、未知字段及混合采样率事件。
仍未验证真实混合采样率自然队列、长期预加载、物理 USB 热插拔、休眠唤醒及 bit-perfect 输出。首次授权/拒绝状态未通过重置系统权限强行制造。曾有一次输出切换响应超时,根因未确认;后续重复检查正常,不据此保证长期稳定。
解码日志仍使用时间窗口关联,某些预加载时序可能存在歧义。没有可靠日志或已授权且身份匹配的元数据时,会保留设备设置并显示提示。
安装与反馈
退出旧版,解压后将 LosslessSwitcher.app 放入 Applications。Music 中需启用无损音频;高解析度音源需要相应的流播放设置,立体声无损测试请关闭 Dolby Atmos。Bit Depth Switching 默认关闭,按需要开启。
欢迎测试和提交 Issue。请提供应用/macOS 版本、Mac/DAC 型号、复现步骤和预期/实际格式。分享日志或截图前请移除个人信息。
继续遵循 GPLv3,保留上游及第三方依赖的许可证和署名。对应版本源码与构建说明。
English
This is cchen7's compatibility-focused fork, not an official upstream release or upstream version 3. Credit remains with Vincent Neo, upstream contributors and the author of the backported transition fix.
2.2.0 Beta 1 / build 28 / ARM64 adds recovery when LosslessSwitcher starts during an already-playing Music stream, separate Source and Output format readouts, and visible output reductions.
Automatic metadata reads never request new permission. Use Read Current Track from Music... for the explicit local Automation consent action when needed. Only the feature-required Apple Events entitlement is added. No Apple ID/password, new notarization profile or private-log configuration profile is needed by end users.
Metadata establishes only Music's reported sample rate, not source codec or bit depth. Unknown fields remain unknown; hardware format is always read back rather than invented. Requests target the running Music process and are bounded and guarded against track/playback changes.
Apple notarization is Accepted. The Developer ID signed app has a stapled, validated ticket and passes Gatekeeper as Notarized Developer ID. The ZIP is rebuilt from the stapled app and includes a SHA-256 checksum.
Real YULong checks covered already-playing 192 kHz recovery, explicit 44.1/96/192 kHz navigation, source/output depth differences, resume and decoder-controlled 16/24-bit output. Mixed-rate natural queues, prolonged preloading, physical USB reconnect, sleep/wake and bit-perfect output remain unverified.
Please test and report issues in this fork with your app/macOS versions, Mac/DAC models and reproduction details. GPLv3, attribution and dependency notices are retained.