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
@@ -17,7 +17,7 @@ private final class PresetSynth: SynthesizerBase {
}
private final class PresetAU: LyrebirdAudioUnit {
public override class func makeSynthesizer() -> SynthesizerBase { PresetSynth() }
public override class func makeSynthesizer() -> SynthesizerBase { MainActor.assumeIsolated { PresetSynth() } }
public override class func factoryPresetsForLyrebird() -> [LyrebirdAUFactoryPreset] {
[
.init(name: "Bright", scalarValues: ["freq": 880, "amp": 0.8]),
@@ -36,6 +36,7 @@ private func makeDesc() -> AudioComponentDescription {
)
}
@MainActor
@Suite("LyrebirdAudioUnit factory presets") struct LyrebirdAudioUnitFactoryPresetsTests {
@Test func factoryPresetsExposeAllNames() throws {