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
@@ -92,13 +92,13 @@ struct InputMuteTests {
@Test func mutedInputRendersSilent() throws {
let (engine, url): (SynthesisEngine, URL) = makeNRTEngine(duration: 0.25, numAudioBuses: 256)
defer { try? FileManager.default.removeItem(at: url) }
let sg: ShoeGaze = ShoeGaze(engine: engine) // input defaults muted
let sg: ShoeGaze = ShoeGaze(engine: engine)
try withExtendedLifetime(sg) {
let board: PedalBoard = try sg.addBoard()
try board.add(VolumePedal())
try sg.finalizeBoard(board)
sg.setInputMuted(true)
sg.setInputMuted(true) // mute explicitly before Start (library default is audible)
try engine.start()
let samples: [Float] = readStereoCAF(url: url)