Repository navigation
feat: audio clocks carry on across a microphone drop, on one run-wide synthetic clock (P-09, D701) - #157
Open
lnorton89 wants to merge 1 commit into
Open
feat: audio clocks carry on across a microphone drop, on one run-wide synthetic clock (P-09, D701)#157lnorton89 wants to merge 1 commit into
lnorton89 wants to merge 1 commit into
Conversation
… synthetic clock (P-09, D701)
Contributor
|
Claude finished @lnorton89's task in 20s —— View job Review of PR #157The change looks correct. I found no bugs and no violations of the house rules. Two things to check:
Minor: the live-to-synthetic test asserts at most one whole beat of movement for beat clocks, which matches |
This branch has not been deployed
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.
Builds backlog P-09, as the owner decided in D701 (R29).
AudioInputreads the synthetic track at its own run clock, advanced once a frame by the app's heard time (app.rs, D300). It no longer uses each caller's scene time, so every scene on synthetic audio hears the same moment, and a cue start no longer restarts its audio.carry_clockstakes an offset at each switch so every clock continues from the value last shown: the six band clocks (syn_Time...syn_CurvedTime) and the two beat clocks (syn_BeatTime,syn_BPMTwitcher). The beat clocks round to whole beats, never backwards. No allocation.Tests:
every_clock_carries_on_across_live_to_synthetic_to_live_an_hour_in: an hour of synthetic audio, then a live frame with every clock elsewhere, then synthetic again. At each switch every clock moves less than a frame's step (a beat clock at most one whole beat) and never back.Checked:
cargo test -p strobe-appin WSL with real GL: everything passes except one timing test indesktop.rs(the lease back-off), which this doesn't touch. It passed when re-run alone.-D warnings, fmt and conventions are clean.Not covered: the
syn_BPMSin/Trifamily follows the new source's beat phase, and a real device unplugged mid-show is still R-01.