Skip to content

Define player buffer-capacity accounting #230

Closed

Description

@maximmaxim345

The player role describes buffer_capacity as a hard byte limit, but does not fully define how the server calculates occupancy. Its enforcement wording also says “should not” rather than MUST NOT.

Clarify which bytes count, including whether the audio message header is included and whether decoded or partially played chunks remain counted. Define when bytes become reusable, how output_delay_ms affects that timing, and how stream/clear, stream/end, and configuration updates affect accounting.

Unlike visualizer frames, an audio chunk’s timestamp identifies its first sample. Releasing the entire chunk at that timestamp could undercount audio still waiting to play. One option is to count each complete message until its last sample’s scheduled output, using a server-side estimate rather than client consumption acknowledgments.

Once the accounting model is defined, align the enforcement wording with the intended hard limit.

Activity

  1. moved this from Triage to Next in Sendspin Project Boardon Sep 9, 2026
  2. moved this from Next to In Progress in Sendspin Project Boardon Sep 10, 2026
  3. moved this from In Progress to Done in Sendspin Project Boardon Sep 15, 2026
  4. moved this from Done to In Progress in Sendspin Project Boardon Sep 16, 2026
  5. added a commit that references this issue on Sep 22, 2026
    2fe2754
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions