Add the source role and task with a PCM streaming pipeline - #114
Closed
chrisuthe wants to merge 1 commit into
Closed
Add the source role and task with a PCM streaming pipeline#114chrisuthe wants to merge 1 commit into
chrisuthe wants to merge 1 commit into
Conversation
chrisuthe
force-pushed
the
source-role/03-role-pcm
branch
from
September 1, 2026 02:32
68cfcc4 to
34c194a
Compare
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.
Part 3/6 of the source@v1 stack (tracker: #95).
What it adds: the source role itself —
SendspinClient::add_source(),SourceRoleConfig, and a dedicated task that assembles captured audio into timestamped PCM chunks and streams them to the server, gated byserver/commandstart/stop with per-connection permission.How it's used: the consumer adds the role with its capture format and feeds
write_audio()from its capture thread; the server starts and stops the stream. After this part the library is a complete PCM source. End-to-end use against Music Assistant additionally needs the encryption/pairing work (servers only activate source@v1 on paired connections) and aiosendspin's pendingclient-stream/*rename.