Skip to content

Allow a gap at player format changes - #301

Merged
kahrendt merged 2 commits into
mainfrom
docs/format-change-gaps
Oct 21, 2026
Merged

kahrendt merged 2 commits into
mainfrom
docs/format-change-gaps

Conversation

@maximmaxim345

@maximmaxim345 maximmaxim345 commented Oct 7, 2026 •

Copy link
Copy Markdown
Member

Servers that share one encoder between players can only switch a player's format at that encoder's next chunk boundary, so they couldn't meet the exact timestamp rule. The server should still continue exactly where the previous format ends, but may now leave a gap. Overlaps and resent audio stay forbidden, and players already fill the gap with silence through the existing sync rules.

Switching the output between formats without adding a gap is now the player's job. Players that can't do that should keep listing a single sample rate and channel count, as before.

aiosendspin already follows these rules since:

Closes #294

@kahrendt kahrendt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@kahrendt
kahrendt merged commit e170f05 into main Oct 21, 2026
1 check passed
@kahrendt
kahrendt deleted the docs/format-change-gaps branch October 21, 2026 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Decide timing and seams of format changes via in-place stream/start

2 participants