fixes for Swift 6 and threading concerns
This commit is contained in:
@@ -9,6 +9,7 @@ import Darwin
|
||||
import Foundation
|
||||
@testable @_spi(LyrebirdExtensions) import LyrebirdSynth
|
||||
|
||||
@MainActor
|
||||
@Suite("MathGenerators — waveshaping + mapping")
|
||||
struct MathGeneratorTests {
|
||||
|
||||
@@ -237,6 +238,7 @@ struct MathGeneratorTests {
|
||||
|
||||
// MARK: - Additional math generators
|
||||
|
||||
@MainActor
|
||||
@Suite("Abs")
|
||||
struct AbsTests {
|
||||
let engine: SynthesisEngine = makeTestEngine(blockSize: 8); var graph: SynthGraph { makeSynthGraph(engine: engine) }
|
||||
@@ -256,6 +258,7 @@ struct AbsTests {
|
||||
}
|
||||
}
|
||||
|
||||
@MainActor
|
||||
@Suite("Sign")
|
||||
struct SignTests {
|
||||
let engine: SynthesisEngine = makeTestEngine(blockSize: 8); var graph: SynthGraph { makeSynthGraph(engine: engine) }
|
||||
@@ -279,6 +282,7 @@ struct SignTests {
|
||||
}
|
||||
}
|
||||
|
||||
@MainActor
|
||||
@Suite("Floor")
|
||||
struct FloorTests {
|
||||
let engine: SynthesisEngine = makeTestEngine(blockSize: 8); var graph: SynthGraph { makeSynthGraph(engine: engine) }
|
||||
@@ -298,6 +302,7 @@ struct FloorTests {
|
||||
}
|
||||
}
|
||||
|
||||
@MainActor
|
||||
@Suite("Ceil")
|
||||
struct CeilTests {
|
||||
let engine: SynthesisEngine = makeTestEngine(blockSize: 8); var graph: SynthGraph { makeSynthGraph(engine: engine) }
|
||||
@@ -317,6 +322,7 @@ struct CeilTests {
|
||||
}
|
||||
}
|
||||
|
||||
@MainActor
|
||||
@Suite("Round")
|
||||
struct RoundTests {
|
||||
let engine: SynthesisEngine = makeTestEngine(blockSize: 8); var graph: SynthGraph { makeSynthGraph(engine: engine) }
|
||||
@@ -336,6 +342,7 @@ struct RoundTests {
|
||||
}
|
||||
}
|
||||
|
||||
@MainActor
|
||||
@Suite("Sqrt")
|
||||
struct SqrtTests {
|
||||
let engine: SynthesisEngine = makeTestEngine(blockSize: 8); var graph: SynthGraph { makeSynthGraph(engine: engine) }
|
||||
@@ -351,6 +358,7 @@ struct SqrtTests {
|
||||
}
|
||||
}
|
||||
|
||||
@MainActor
|
||||
@Suite("Reciprocal")
|
||||
struct ReciprocalTests {
|
||||
let engine: SynthesisEngine = makeTestEngine(blockSize: 8); var graph: SynthGraph { makeSynthGraph(engine: engine) }
|
||||
@@ -366,6 +374,7 @@ struct ReciprocalTests {
|
||||
}
|
||||
}
|
||||
|
||||
@MainActor
|
||||
@Suite("Log")
|
||||
struct LogTests {
|
||||
let engine: SynthesisEngine = makeTestEngine(blockSize: 8); var graph: SynthGraph { makeSynthGraph(engine: engine) }
|
||||
@@ -385,6 +394,7 @@ struct LogTests {
|
||||
}
|
||||
}
|
||||
|
||||
@MainActor
|
||||
@Suite("Exp")
|
||||
struct ExpTests {
|
||||
let engine: SynthesisEngine = makeTestEngine(blockSize: 8); var graph: SynthGraph { makeSynthGraph(engine: engine) }
|
||||
@@ -404,6 +414,7 @@ struct ExpTests {
|
||||
}
|
||||
}
|
||||
|
||||
@MainActor
|
||||
@Suite("Min (binary)")
|
||||
struct MinTests {
|
||||
let engine: SynthesisEngine = makeTestEngine(blockSize: 8); var graph: SynthGraph { makeSynthGraph(engine: engine) }
|
||||
@@ -423,6 +434,7 @@ struct MinTests {
|
||||
}
|
||||
}
|
||||
|
||||
@MainActor
|
||||
@Suite("Max (binary)")
|
||||
struct MaxTests {
|
||||
let engine: SynthesisEngine = makeTestEngine(blockSize: 8); var graph: SynthGraph { makeSynthGraph(engine: engine) }
|
||||
@@ -442,6 +454,7 @@ struct MaxTests {
|
||||
}
|
||||
}
|
||||
|
||||
@MainActor
|
||||
@Suite("ExpLin")
|
||||
struct ExpLinTests {
|
||||
let engine: SynthesisEngine = makeTestEngine(blockSize: 8); var graph: SynthGraph { makeSynthGraph(engine: engine) }
|
||||
@@ -473,6 +486,7 @@ struct ExpLinTests {
|
||||
}
|
||||
}
|
||||
|
||||
@MainActor
|
||||
@Suite("ExpExp")
|
||||
struct ExpExpTests {
|
||||
let engine: SynthesisEngine = makeTestEngine(blockSize: 8); var graph: SynthGraph { makeSynthGraph(engine: engine) }
|
||||
@@ -499,6 +513,7 @@ struct ExpExpTests {
|
||||
|
||||
// MARK: - Ring1 Tests
|
||||
|
||||
@MainActor
|
||||
@Suite("Ring1")
|
||||
struct Ring1Tests {
|
||||
let engine: SynthesisEngine = makeTestEngine(blockSize: 8); var graph: SynthGraph { makeSynthGraph(engine: engine) }
|
||||
@@ -522,6 +537,7 @@ struct Ring1Tests {
|
||||
|
||||
// MARK: - Ring2 Tests
|
||||
|
||||
@MainActor
|
||||
@Suite("Ring2")
|
||||
struct Ring2Tests {
|
||||
let engine: SynthesisEngine = makeTestEngine(blockSize: 8); var graph: SynthGraph { makeSynthGraph(engine: engine) }
|
||||
@@ -545,6 +561,7 @@ struct Ring2Tests {
|
||||
|
||||
// MARK: - Ring3 Tests
|
||||
|
||||
@MainActor
|
||||
@Suite("Ring3")
|
||||
struct Ring3Tests {
|
||||
let engine: SynthesisEngine = makeTestEngine(blockSize: 8); var graph: SynthGraph { makeSynthGraph(engine: engine) }
|
||||
@@ -568,6 +585,7 @@ struct Ring3Tests {
|
||||
|
||||
// MARK: - Ring4 Tests
|
||||
|
||||
@MainActor
|
||||
@Suite("Ring4")
|
||||
struct Ring4Tests {
|
||||
let engine: SynthesisEngine = makeTestEngine(blockSize: 8); var graph: SynthGraph { makeSynthGraph(engine: engine) }
|
||||
@@ -589,6 +607,7 @@ struct Ring4Tests {
|
||||
}
|
||||
}
|
||||
|
||||
@MainActor
|
||||
@Suite("Cos")
|
||||
struct CosTests {
|
||||
let engine: SynthesisEngine = makeTestEngine(blockSize: 8); var graph: SynthGraph { makeSynthGraph(engine: engine) }
|
||||
@@ -616,6 +635,7 @@ struct CosTests {
|
||||
}
|
||||
}
|
||||
|
||||
@MainActor
|
||||
@Suite("Sin")
|
||||
struct SinTests {
|
||||
let engine: SynthesisEngine = makeTestEngine(blockSize: 8); var graph: SynthGraph { makeSynthGraph(engine: engine) }
|
||||
@@ -639,6 +659,7 @@ struct SinTests {
|
||||
}
|
||||
}
|
||||
|
||||
@MainActor
|
||||
@Suite("Tan")
|
||||
struct TanTests {
|
||||
let engine: SynthesisEngine = makeTestEngine(blockSize: 8); var graph: SynthGraph { makeSynthGraph(engine: engine) }
|
||||
|
||||
Reference in New Issue
Block a user