Skip to content

Stop buffered audio from delaying server commands and state - #320

Open
maximmaxim345 wants to merge 3 commits into
mainfrom
docs/control-ahead-of-binary-data
Open

maximmaxim345 wants to merge 3 commits into
mainfrom
docs/control-ahead-of-binary-data

Conversation

@maximmaxim345

Copy link
Copy Markdown
Member

Since Sendspin sends everything over one WebSocket, a server filling a player's buffer can hold back volume and mute commands until the buffer is nearly full. While the send order might seem like an implementation choice, I think the spec needs to state it to avoid this.

server/command, server/state and group/update now go out ahead of any binary role data the server hasn't started sending. Stream control messages keep their place since they have to stay in order with the audio chunks.

Closes #264

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.

server/command volume/mute can be starved by continuous player-audio delivery

1 participant