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
@@ -9,6 +9,7 @@ import Testing
// MARK: - Init State
@MainActor
@Suite("Init state") struct InitStateTests {
@Test func storesBlockSize() {
let e: SynthesisEngine = makeTestEngine(blockSize: 256)
@@ -46,6 +47,7 @@ import Testing
// MARK: - Bus Allocation
@MainActor
@Suite("Bus allocation") struct BusAllocationTests {
@Test func audioBusCountAfterStart() throws {
let e: SynthesisEngine = makeTestEngine(numAudioBuses: 128)
@@ -81,6 +83,7 @@ import Testing
// MARK: - Lifecycle
@MainActor
@Suite("Lifecycle") struct LifecycleTests {
@Test func isRunningAfterStart() throws {
let e: SynthesisEngine = makeTestEngine()
@@ -115,6 +118,7 @@ import Testing
// MARK: - Bus Index Convention (SC layout)
@MainActor
@Suite("Bus index convention") struct BusConventionTests {
@Test func outputBusesAtIndexZero() throws {
let e: SynthesisEngine = makeTestEngine(numOutputChannels: 2)
@@ -145,6 +149,7 @@ import Testing
// MARK: - processBlock Cycle Semantics
@MainActor
@Suite("processBlock") struct ProcessBlockTests {
@Test func audioBusesZeroedEachBlock() throws {
let e: SynthesisEngine = makeTestEngine(blockSize: 4, numOutputChannels: 2,
@@ -195,6 +200,7 @@ import Testing
}
}
@MainActor
@Suite("pendingQueueDroppedCount") struct PendingQueueDropTests {
private final class _Empty: SynthesizerBase { override func build() {} }