fixes for Swift 6 and threading concerns

This commit is contained in:
2026-06-02 12:09:44 -07:00
parent 2fa4bfd45e
commit 6d3a0930a1
327 changed files with 1596 additions and 199 deletions
@@ -0,0 +1,21 @@
// 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)")