This commit is contained in:
2026-06-10 08:41:23 -07:00
parent f59fd3b55a
commit 1c03e39eac
@@ -1,21 +0,0 @@
// main.swift
// MainActorConsumer (Phase 201 regression fixture)
//
// Copyright (c) 2026 Joshua Parmenter / realizedsound
// SPDX-License-Identifier: MIT
import LyrebirdSynth
// PHASE 201 GUARANTEE: a consumer under the MainActor-default build mode subclasses
// `SynthesizerBase` and overrides `build()` with NO `nonisolated`, NO `@preconcurrency`,
// NO `@MainActor`, NO `nonisolated override init`. If this stops compiling, the
// language-side actor-isolation guarantee has regressed.
final class ToneSynth: SynthesizerBase {
@LiveParam var freq: Double = 440
override func build() {
output(bus: 0, source: OscSin.Audio(freq: $freq) * 0.2)
}
}
let synth = ToneSynth()
print("Phase 201 regression fixture OK: \(synth)")