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