Files
feuerwerk/tests/viewport
adminandClaude Opus 5.5 db15422372
game-maker / gate (push) Successful in 3m52s
game-maker / suite (push) Successful in 15m14s
Keep a bus's level when a tab plays the first sound of a page (#369)
A bus of the mix played at full level, without its sound FX and
straight into the master, until something on it changed. It happened
when the first sound after loading came from the Song or Pattern tab.

- `bus()` looked a bus up before it asked for the audio context. The
  context made then sets up the whole mix, this bus too, and `bus()`
  overwrote it with a fresh one at gain 1.
- `setMix` does nothing for the same mix again, so the wrong bus
  stayed until the mix changed.
- Since #368 the tabs play into the master, so it was the master's
  volume and FX that went missing on the first preview.
- `bus()` now asks for the context first and looks the bus up after.

Tests:
- Unit sound-library, buses, master-routing: 139 green, 1 new.
- The new test was red before the fix: mix:b at gain 1 into the
  master instead of 0.25 into mix:a.
- Gate (melektaus-atx): CHECK EXIT 0, 274 files, 4231 tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 13:09:41 +02:00
..