Repository navigation
fix(audio-delay): a rebuild raised the moment one returned keeps the playhead (AE#464 round 5) - #611
Merged
Merged
Conversation
…playhead (AE#464 round 5) `rebuildPosition` honoured the parked position only while `state == .loading`, but the autostart at the tail of `load()` writes `.playing` before the new host has published a position. For the next ~50 ms the clock still reads the zero `load()` wrote, so a correction raised the moment a rebuild returned rebuilt the session at its head. `setAudioDelay`'s own catch-up pass sits exactly in that window, and so does a second stepper press 50-90 ms after the first on `.loopback`. A playable session whose clock reads exactly the reset zero now answers with the parked position. An accepted seek retires the parked value, so a genuine seek to 0 is never overridden. Measured with aetherctl (300 s H.264 + AAC, two presses 50-90 ms apart): before `#3 mount seek: item axis 0.00s` / `cutting seg0+` on every run, after `14.90s` / `seg3+` on every run. Control: load at 100 s, seek to 0, correct: the rebuild mounts at 0.00s. Reported by cmcpherson274 as E8-F4 (information, not filed). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_014AVNwe8YDG9EQM7uHdjT3f
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.
Refs #464 (round 5, reporter's E8-F4).
Defect
rebuildPositionhonoured the parked position only whilestate == .loading. The autostart at the tail ofload()writes.playingbefore the new host has published a position, so for ~50 ms the clock still reads the zeroload()wrote. A correction raised in that window rebuilt at the head.setAudioDelay's own catch-up pass starts exactly there, and a secondsetAudioDelaypress 50 to 90 ms after the first on.loopbacklands there too.Fix
rebuildPosition: a.playing/.pausedsession whose clock reads exactly the reset zero answers with the parked position.seek(to:origin:): an accepted seek retires the parked position, so a real seek to 0 is not overridden.Measured (aetherctl, 300 s H.264 + AAC, M1)
#3 mount seek: item axis 0.00s,cutting seg0+(5 of 5)14.80s/14.90s,seg3+(5 of 5)14.80s,seg3+Control:
--start-position 100, seek to 0, then a correction: the rebuild mounts at0.00s, not at the parked 100 s (2 of 2).swift test: 629 XCTest (1 skipped) and 3358 swift-testing, all passed.Docs:
docs/api.md(catch-up band, post-return window),docs/cli.md(round 5 harness).🤖 Generated with Claude Code
https://claude.ai/code/session_014AVNwe8YDG9EQM7uHdjT3f