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
@@ -99,6 +99,7 @@ private final class TestBlockDriver: @unchecked Sendable {
// MARK: - Suite
@MainActor
@Suite("LyrebirdProcess")
struct LyrebirdProcessTests {
@@ -426,8 +427,9 @@ struct LyrebirdProcessTests {
envelope: sustainedEnvelope(),
numChannels: 1,
body: { ctx in
let s1: SilentSynth = SilentSynth()
let s2: SilentSynth = SilentSynth()
let (s1, s2): (SilentSynth, SilentSynth) = await MainActor.run {
(SilentSynth(), SilentSynth())
}
ctx.add(s1, at: .head)
ctx.add(s2, at: .tail)
// Allow main-thread dispatches from ctx.add to land and the engine