Skip to content

fix(renderer): collect audio sources from every page - #27

Open
elwizard33 wants to merge 1 commit into
thecodacus:masterfrom
elwizard33:fix/collect-audio-from-all-pages
Open

elwizard33 wants to merge 1 commit into
thecodacus:masterfrom
elwizard33:fix/collect-audio-from-all-pages

Conversation

@elwizard33

Copy link
Copy Markdown

Fixes #20.

renderFrames only read window.__RENDIV_AUDIO_SOURCES__ from pages[0], so with concurrency > 1, a clip that only mounted in another tab was missing from the mix. This reads the map from every page and merges the entries by their existing key, so a clip registered in several tabs still only shows up once. The change is only in render-frames.ts.

To check it, I rendered a 2-frame composition with a.mp3 at frame 0 and b.mp3 at frame 1, with concurrency: 2. On master audioSources only had a.mp3; with this branch it has both. There's no automated test, since the renderer package doesn't have a test setup.

With concurrency > 1, an <Audio> registers only in the tabs whose frames
mounted it, but audio sources were read from pages[0] alone. Clips that
mounted only on frames rendered by other tabs were dropped from the mix.
Read every page and merge by the registration key.
@coderabbitai

coderabbitai Bot commented Nov 2, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 59 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b344f68c-26ef-4d17-b6cd-2b37f75f6af2
Commits

Reviewing files that changed from the base of the PR and between 6d6aca2 and e1f5f81.

Files selected for processing: 1
  • packages/renderer/src/render-frames.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

This branch has not been deployed

No deployments
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.

renderFrames only collects audio from the first tab, so short clips can be missing with concurrency > 1

1 participant