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
@@ -70,6 +70,7 @@ private func removeTempDir(_ url: URL) {
// MARK: - Suite
@MainActor
@Suite("LyrebirdEventListBuildFromFile")
struct LyrebirdEventListBuildFromFileTests {
@@ -37,6 +37,7 @@ private func makePrePostTestEngine() -> SynthesisEngine {
)
}
@MainActor
@Suite("LyrebirdEventList preMasterGroup / postMasterGroup")
struct LyrebirdEventListPrePostGroupTests {
@@ -210,6 +210,7 @@ private func removeTempDir(_ url: URL) {
// MARK: - Suite
@MainActor
@Suite("LyrebirdEventListRecording")
struct LyrebirdEventListRecordingTests {
@@ -140,6 +140,7 @@ private final class Box<T>: @unchecked Sendable {
// MARK: - Suite
@MainActor
@Suite("LyrebirdEventList")
struct LyrebirdEventListTests {
@@ -92,6 +92,7 @@ private func makeSimpleEventList(
// MARK: - Suite
@MainActor
@Suite("LyrebirdEventListTimeline")
struct LyrebirdEventListTimelineTests {
@@ -21,6 +21,7 @@ import Foundation
///
/// must hold at the peak value (1.0) indefinitely while gate > 0, not at
/// `levels[releaseNode + 1] = levels[2] = 0` (the pre-Phase-162 behavior).
@MainActor
@Suite("LyrebirdProcess envelope holds at releaseNode level index")
struct LyrebirdProcessReleaseNodeHoldTest {
@@ -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