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
@@ -37,7 +37,7 @@ public final class SnippetContext {
/// - Returns: `true` if the engine accepted the enqueue; `false` if
/// `engine.add` threw (e.g. cross-engine binding, double-add, queue full).
@discardableResult
public func play(_ synth: any Synthesizer) -> Bool {
@MainActor public func play(_ synth: any Synthesizer) -> Bool {
do {
try session.engine.add(synth)
session.track(synth)