Skip to content

Add the source role and task with a PCM streaming pipeline - #114

Closed
chrisuthe wants to merge 1 commit into
source-role/02-binary-sendfrom
source-role/03-role-pcm
Closed

Add the source role and task with a PCM streaming pipeline#114
chrisuthe wants to merge 1 commit into
source-role/02-binary-sendfrom
source-role/03-role-pcm

Conversation

@chrisuthe

Copy link
Copy Markdown
Member

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 by server/command start/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 pending client-stream/* rename.

@chrisuthe
chrisuthe force-pushed the source-role/03-role-pcm branch from 68cfcc4 to 34c194a Compare September 1, 2026 02:32
@chrisuthe chrisuthe closed this Sep 3, 2026
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