v4.1 Modify log parsing and DAC sample rate switching process @horikei525#216
Open
horikei525 wants to merge 22 commits into
Open
v4.1 Modify log parsing and DAC sample rate switching process @horikei525#216horikei525 wants to merge 22 commits into
horikei525 wants to merge 22 commits into
Conversation
Author
|
Sorry to keep you waiting. |
added 3 commits
July 13, 2026 16:52
…layback position of a song requiring a sample rate change.
…layback position of a song requiring a sample rate change.
Owner
|
Thanks for your work on this! I will try this out someday! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
v4.1 Release Notes
In the previous v2 version, the application monitored Apple Music logs via "MediaRemote" to synchronize the sample rate. However, this approach forced an inherently contradictory behavior: as an app designed to synchronize sample rates for the highest quality audio experience, the noise generated by the DAC switching sample rates mid-playback would constantly interrupt the music, making it feel almost as if the noise was being introduced intentionally.
With this new v4.1 release, we have fundamentally resolved these core issues.
Our analysis of the Apple Music logs revealed that the system outputs the sample rate to the "log stream" first, and then to "MediaRemote" approximately 100ms later. Consequently, we have switched our monitoring target to the "log stream." The application now operates based on the following two scenarios:
1. Automatic Track Transitions within a Playlist (No User Interactivity)
00:00.2. Manual Track Changes by the User
When a user manually skips or selects a track, the behavior adjusts slightly to prevent errors:
00:00while the DAC is still mid-switch, Apple Music incorrectly assumes that the user's selected track failed to play. This triggers a bizarre bug that defaults back to playing the very first track in the playlist.00:00. This provides Apple Music with a buffer of over 100ms until the DAC is fully ready, successfully avoiding the error.By implementing these behaviors, the sample rate can be changed rapidly without the user even noticing.
Test Environment & Stability
During my internal testing with a MacBook Air M2 (macOS 26.5.2) paired with the Moondrop Dawn PRO, ECHO-A, and ECHO-B, the behavior appeared highly stable.
Future Roadmap
However, similar to v2, bit-depth switching remains unstable at this time. We will continue to target improvements for this behavior in future updates.