Repository navigation
RateSync 3.2.12 优化硬件档位选择、连续采样率支持与位深上报一致性,并修复多处格式仲裁边界问题:
RateSync 3.2.12 improves hardware bit-depth selection, continuous sample rate support, and reported bit-depth consistency, while fixing multiple format arbitration edge cases:
修复与优化 / Improvements and Fixes
- 重构位深选档策略(无损容纳优先):在设备仅提供 16/32 位档位时(如部分 DAC 在 48 kHz 下缺少 24 位),24 位曲目优先升选至 32 位容器无损容纳,消除平局降档至 16 位的缺陷;所有档位不足时回退至最高可用档位。
- 严格限定位深证据采样率匹配:Apple Music 格式仲裁剔除与当前目标采样率不匹配的孤立历史记录,无匹配采样率记录时保留未知位深并沿用设备当前硬件位深,避免跨采样率误套用 16 位旧记录。
- 支持 CoreAudio 连续采样率范围:解析并保留
kAudioStreamAnyRate与连续采样率范围,按设备支持的标称采样率展开合法物理格式,使连续范围设备能正常匹配 48 kHz 等合法档位。 - 按硬件实际读回状态上报与缓存位深:未开启位深切换或未实际执行物理写入时,小组件与状态上报严格依据设备实际硬件读回位深,不再虚报未写入的源位深。
- 同曲目暂停恢复隔离旧回调:暂停及恢复播放时递增曲目代次并重置查询 ID,使飞行中的旧查询与延迟重试失效,防止旧窗口数据回写。
- 补齐格式探测与选档数值日志:移除日志中的
<private>脱敏掩蔽,完整输出源采样率、源位深、设备位深与可用档位列表。 - Lossless Bit-Depth Selection: When a device offers only 16/32-bit (e.g. DACs lacking 24-bit at 48 kHz), 24-bit tracks are promoted to 32-bit lossless containers rather than tie-breaking down to 16-bit; falls back to highest available depth when all are insufficient.
- Sample Rate Matched Bit-Depth Arbitration: Apple Music format resolution discards bit-depth evidence that does not match the target sample rate, preserving current device depth when no evidence matches to prevent mismatched 16-bit cross-rate contamination.
- Continuous CoreAudio Sample Rate Ranges: Expand
kAudioStreamAnyRateand continuous rate ranges across device nominal rates so 48 kHz and other valid rates are accurately matched. - Hardware Read-Back Bit-Depth Reporting: When bit-depth switching is disabled or unchanged, status and widgets report the actual read-back hardware depth rather than unwritten source depth.
- Pause-Resume Query Invalidation: Increment track generations and query IDs on both pause and resume to invalidate stale in-flight probes and retries across playback windows.
- Unmasked Format Diagnostics: Eliminate
<private>masking in logs to fully report source format, device bit depth, and candidate options.
如果在使用过程中还有切错档位或异常情况,欢迎随时通过 GitHub Issues 反馈!
If you still encounter any incorrect switching or unexpected behavior, feedback via GitHub Issues is very welcome!