An editor recording had no sound while the video tab played a video.
The tab played its <video> straight to the speakers, past the Web
Audio graph, so the recording tap behind the limiter never heard it.
Fixing only that would have left videos as the one sound source the
Master routing cannot reach, so they get their own node, like sounds.
- A video asset with sound has a routing node labelled "Video". One
without sound has none, it would have nothing to send.
- Its links take the sound after volume and FX. Several links or
another level give the video its own bus, as with a sound.
- A new video follows the bus most other videos use. With none linked
yet it goes to the Master, not to where the sounds go. Songs and
sounds no longer follow videos either.
- Players only know their file, so videoBusesOf maps each file to the
bus of its first asset. setMix takes that map and moves the gains of
running videos at once when the routing changes.
- In the game, played in the editor or released, a video's sound
follows its links. The tabs (video, composition, animation preview)
play straight into the Master, as the sound tabs have since #368.
- The video tab's sound now goes through the Master, so its volume, FX
and limiter apply there and the editor recording hears it.
- The recording badge beside the menu is an HTML element over the
canvas now. The second render that drew it on the desynchronized
canvas let the screen show a frame without it, so it flickered. The
element is never in the copy, and clicks go through it.
Tests:
- Unit master-routing and sound-library: 3 new, green. Red without
video in the routing kinds, without moving the gains, and with the
old rule for the links of a new video.
- e2e 66e-iii: the tab plays a video linked to a bus, the level is
0.09 on the Master and 0 on the bus. 66g: in the game the bus has
0.09. Both red with the old ways.
- e2e 67e reads the badge from a real screenshot, still green.
- The README names 2043 e2e checks.
- Gate on melektaus-atx: 304 files, 4694 tests green.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>