Skip to content

feat: publish live audio graph (context + masterGain) on window.slopsmith.stems#37

Merged
byrongamatos merged 1 commit into
mainfrom
feat/publish-audio-graph
Jul 9, 2026
Merged

feat: publish live audio graph (context + masterGain) on window.slopsmith.stems#37
byrongamatos merged 1 commit into
mainfrom
feat/publish-audio-graph

Conversation

@OmikronApex

Copy link
Copy Markdown
Contributor

Lets the host shell observe/re-route the stem mix — the desktop renderer-bus feeder (feedBack#828) taps masterNode when the output device is exclusive-style, so multi-stem songs stay audible under WASAPI-exclusive output (feedBack Phase 2).

  • New src/audio-graph-publish.js: publishAudioGraph() / retractAudioGraph().
  • Published at both graph build sites (buffer path in main.js, streaming path in streaming.js); retracted in teardown, guarded by masterGain node identity since the AudioContext is reused across songs.
  • Deployment-agnostic: the plugin only says "here is my master" — no sphere branching; a no-op in the Docker sphere.

Independent of the other Phase 2 PRs (can merge in any order). Tests: 47/47.

🤖 Generated with Claude Code

…mith.stems

Lets the host shell observe/re-route the stem mix — the desktop
renderer-bus feeder taps masterGain when the output device is
exclusive-style (feedBack Phase 2). Deployment-agnostic: the plugin only
says "here is my master"; retracted in teardown, guarded by node identity
since the AudioContext is reused across songs.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jul 9, 2026

Copy link
Copy Markdown

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: d332bc3e-e35e-452c-b43a-e35b0a4ecc2c

📥 Commits

Reviewing files that changed from the base of the PR and between 5176420 and c1973c4.

📒 Files selected for processing (3)
  • src/audio-graph-publish.js
  • src/main.js
  • src/streaming.js
 __________________________________________________________
< The happy path is delighted. The sad path is litigating. >
 ----------------------------------------------------------
  \
   \   (\__/)
       (•ㅅ•)
       /   づ
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/publish-audio-graph

Comment @coderabbitai help to get the list of available commands.

@byrongamatos
byrongamatos merged commit 7940042 into main Jul 9, 2026
3 checks passed
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.

2 participants