fixes for Swift 6 and threading concerns
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user