Skip to content

Allow a gap at player format changes - #301

Open
maximmaxim345 wants to merge 2 commits into
mainfrom
docs/format-change-gaps
Open

maximmaxim345 wants to merge 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

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

1 participant