Skip to content

Advise players to list a format every server can stream - #79

Open
maximmaxim345 wants to merge 1 commit into
mainfrom
docs/player-format-advice
Open

maximmaxim345 wants to merge 1 commit into
mainfrom
docs/player-format-advice

Conversation

@maximmaxim345

@maximmaxim345 maximmaxim345 commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

The player format requirement left the spec, so the guide now recommends listing at least one flac or pcm entry that every server produces.

It also says what happens without one: the server never starts a stream.

Related:

@netlify

netlify Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for sendspin-website ready!

Name Link
🔨 Latest commit 0d87bef
🔍 Latest deploy log https://app.netlify.com/projects/sendspin-website/deploys/6ad9e0f23c46986749c6a053
😎 Deploy Preview https://deploy-preview-79--sendspin-website.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

kahrendt pushed a commit to Sendspin/spec that referenced this pull request Oct 28, 2026
<!-- Describe the change and why it is needed. -->

The spec promised that a player listing `flac` or `pcm` can be served by
every server, but `bit_depth`, `channels` and `sample_rate` had 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`:
- 16 bit, 1 channel, 44100 Hz
- 16 bit, 1 channel, 48000 Hz
- 16 bit, 2 channels, 44100 Hz
- 16 bit, 2 channels, 48000 Hz
- 24 bit, 1 channel, 44100 Hz
- 24 bit, 1 channel, 48000 Hz
- 24 bit, 2 channels, 44100 Hz
- 24 bit, 2 channels, 48000 Hz

`pcm`:
- 16 bit, 1 channel, 44100 Hz
- 16 bit, 1 channel, 48000 Hz
- 16 bit, 2 channels, 44100 Hz
- 16 bit, 2 channels, 48000 Hz

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. `pcm` only needs 16 bit, which keeps its bandwidth at about
1.5 Mbit/s for stereo at 48 kHz, while `flac` covers 24 bit.
`aiosendspin` already does all of this.

The player side moves out of the spec: the rule that players list `flac`
or `pcm` is removed, and the implementation guide recommends listing at
least one entry from this set instead.

Related:
- Sendspin/sendspin-audio.com#79

- [x] I accept the [Contributor License
Agreement](../blob/main/CONTRIBUTOR-LICENSE-AGREEMENT.md) for this
contribution.
@maximmaxim345
maximmaxim345 marked this pull request as ready for review October 29, 2026 09:48

This branch has not been deployed

No deployments
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.

1 participant