Repository navigation
Define the player formats every server must produce - #323
Merged
Merged
Conversation
This comment has been minimized.
This comment has been minimized.
8 of 9 tasks
Member
Author
|
Server requirement should stay as MUST, client requirements should stay out of the spec and instead be moved into the implementation guide. |
maximmaxim345
marked this pull request as ready for review
October 22, 2026 10:12
1 task done
This was referenced Nov 4, 2026
maximmaxim345
added a commit
to Sendspin/sendspin-js
that referenced
this pull request
Nov 6, 2026
# What does this implement/fix? <!-- Quick description and explanation of changes. --> The comments around the flac/pcm fallback still said the protocol requires players to list flac or pcm. The spec dropped that player rule and now only requires servers to support flac and pcm at 16-bit and 44.1 or 48 kHz, so the comments say that instead. No code changes. **Related issue or spec PR (if applicable):** - Sendspin/spec#323 ## Types of changes <!-- Tick exactly one box. CI (.github/workflows/pr-labels.yaml) applies the matching label, and the release notes use it to sort this change. --> - [ ] Bugfix (non-breaking change which fixes an issue): `bugfix` - [ ] New feature (non-breaking change which adds functionality): `new-feature` - [ ] Enhancement to an existing feature: `enhancement` - [ ] Breaking change (changes the public API or the protocol in a way that is not backwards compatible): `breaking-change` - [ ] Refactor (no behavior change): `refactor` - [x] Documentation only: `documentation` - [ ] Maintenance / chore: `maintenance` - [ ] CI / workflow change: `ci` - [ ] Dependencies bump: `dependencies`
This was referenced Nov 16, 2026
maximmaxim345
added a commit
to Sendspin/aiosendspin
that referenced
this pull request
Nov 16, 2026
# What does this implement/fix? <!-- Quick description and explanation of changes. --> A server running with `allow_noncompliant_clients=False` rejected players whose `supported_formats` listed only `opus`, and other servers logged a non-compliance warning for them. The spec no longer requires players to list `flac` or `pcm`, so these players are compliant. The server picks Opus for them when PyAV has libopus, and otherwise sends them no stream, like any player that lists only formats the server can't produce. **Related issue or spec PR (if applicable):** - Sendspin/spec#323 ## Types of changes <!-- Tick exactly one box. CI (.github/workflows/pr-labels.yaml) applies the matching label, and the release notes use it to sort this change. --> - [x] Bugfix (non-breaking change which fixes an issue): `bugfix` - [ ] New feature (non-breaking change which adds functionality): `new-feature` - [ ] Enhancement to an existing feature: `enhancement` - [ ] Breaking change (changes the public API or the protocol in a way that is not backwards compatible): `breaking-change` - [ ] Refactor (no behavior change): `refactor` - [ ] Documentation only: `documentation` - [ ] Maintenance / chore: `maintenance` - [ ] CI / workflow change: `ci` - [ ] Dependencies bump: `dependencies`
48 of 58 tasks
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.
The spec promised that a player listing
flacorpcmcan be served by every server, butbit_depth,channelsandsample_ratehad no bounds. A player listing only formats outside what a server produces was compliant but never got a stream, with no error sent to it. A server producing just one narrow format was also compliant.This names a set every server has to produce.
flac:pcm:I don't think this is a hard requirement for servers. Most audio is already at 44.1 or 48 kHz, so at most one sample rate conversion is needed. Converting bit depth, mixing down to mono and FLAC encoding are all cheap.
pcmonly needs 16 bit, which keeps its bandwidth at about 1.5 Mbit/s for stereo at 48 kHz, whileflaccovers 24 bit.aiosendspinalready does all of this.The player side moves out of the spec: the rule that players list
flacorpcmis removed, and the implementation guide recommends listing at least one entry from this set instead.Related:
Advise players to list a format every server can stream sendspin-audio.com#79
I accept the Contributor License Agreement for this contribution.