Skip to content

The VS Code of video editing, built for agents.

TypeScript

Remove redundant AudioBus observer from world observation logic

konstantin-paulusff6ebac686e0
diff --git a/apps/web/src/components/engine/api/observers.ts b/apps/web/src/components/engine/api/observers.ts
index 89a5576e..dc1fc0ea 100644
--- a/apps/web/src/components/engine/api/observers.ts
+++ b/apps/web/src/components/engine/api/observers.ts
@@ -316,14 +316,6 @@ export function observeWorld(world: EngineWorld) {
if (volume !== undefined) syncKeyframeTrack(world, eid, 'volume');
});
- observe(world, "add", c.AudioBus, () => {
- // AudioBus is created lazily during the playback tick (resolveAudioBus),
- // after the appendChild rebuild has already run. Rebuild the timeline index
- // so audio-aware UI (e.g. the soundboard meters) reacts to the newly
- // metered layer instead of staying stale until the next reorder/delete.
- world.rebuildTimelineIndex();
- });
-
observe(world, "add", c.Muted, (eid) => {
utils.persistEntity(world, eid);
});