A slow tune's first segments carry no audio gaps #48

Closed
opened 2026-10-29 19:20:28 -04:00 by cmoriarty · 1 comment
Owner

Why

Seen on the live Hurricanes vs. Blue Jackets tune, 2026-10-29. When the upstream's window is longer than the cold start fetches ahead, the older segments are listed and served on demand. Each was encoded alone by the audio step (#39), and ended two frames short of the next: a 40 ms audio gap at each join, for the first segments a player fetched. The chained segments that followed joined exactly. A media server whose first answer lists only those older segments starts on them.

What Changes

  • Segments served on demand are encoded on a chain of their own, in order, each carrying on from the one before.
  • The join from that chain to the main one is made exact too: either the main chain starts where the on-demand chain ends, or the on-demand segments are not listed once the main chain has started.

Done when a cold start whose window is longer than the fetch-ahead serves its first segments with every audio join at zero gap, measured the way the 2026-10-29 check was (one frame on the 1920-tick grid after the last).

## Why Seen on the live Hurricanes vs. Blue Jackets tune, 2026-10-29. When the upstream's window is longer than the cold start fetches ahead, the older segments are listed and served on demand. Each was encoded alone by the audio step (#39), and ended two frames short of the next: a 40 ms audio gap at each join, for the first segments a player fetched. The chained segments that followed joined exactly. A media server whose first answer lists only those older segments starts on them. ## What Changes - Segments served on demand are encoded on a chain of their own, in order, each carrying on from the one before. - The join from that chain to the main one is made exact too: either the main chain starts where the on-demand chain ends, or the on-demand segments are not listed once the main chain has started. **Done when** a cold start whose window is longer than the fetch-ahead serves its first segments with every audio join at zero gap, measured the way the 2026-10-29 check was (one frame on the 1920-tick grid after the last).
Author
Owner

Closing: deployed 2026-10-29 (4d8f5ce). Segments served on demand are encoded on a chain of their own and join the main chain exactly.

Closing: deployed 2026-10-29 (4d8f5ce). Segments served on demand are encoded on a chain of their own and join the main chain exactly.
Sign in to join this conversation.
No labels
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
cmoriarty/sports-breaker#48
No description provided.