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