Review nits: name pulse-settle constant, fix stale comments

Non-blocking cleanups from the clean review pass:
- EngineConfigView.startEngine: collapse the redundant early-return in the
  sample-rate-mismatch branch into the shared tail.
- InputMuteButton: hoist the 0.2s settle duration to a named pulseSettleDuration.
- InputMuteTests: correct a stale "input defaults muted" comment (library default
  is audible; the test mutes explicitly).
- Plan doc: setInputMuted(true) runs before engine.start(), not after; note the
  addBoard priming.

464 tests pass; macOS app builds.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-07-11 21:41:57 -07:00
parent e36074e9d3
commit e207728a12
4 changed files with 11 additions and 9 deletions
@@ -32,9 +32,13 @@ moment the mute is meant to keep things quiet; a kill-switch mute is expected to
### Engine start
`EngineConfigView.startEngine()` calls `shoeGaze.setInputMuted(true)` after a successful
user Start. Transient stop/start-around-rebuild paths (`applyInputSource`, `performClear`)
call `engine.start()` directly and are unaffected — they preserve the current mute state.
`EngineConfigView.startEngine()` calls `shoeGaze.setInputMuted(true)` **before**
`engine.start()`, while the engine is stopped — so the gain is seeded (`previousOutputValue`
primed to the target, no ramp) and the very first render block is already muted. Asserting it
after start would leave the opening blocks unmuted. Transient stop/start-around-rebuild paths
(`applyInputSource`, `performClear`) call `engine.start()` directly and are unaffected — they
preserve the current mute state. Nodes are also primed at creation in `addBoard()` (before the
node is spliced into the graph), so a board added while muted has no first-block leak either.
### MIDI