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
@@ -10,6 +10,7 @@ import LyrebirdSynth
// MARK: - _regionForSegment
@MainActor
@Suite("_regionForSegment") struct RegionForSegmentTests {
// No loop or release — everything is preLoop
@@ -64,6 +65,7 @@ import LyrebirdSynth
// MARK: - _segmentBoundaryTimes
@MainActor
@Suite("_segmentBoundaryTimes") struct SegmentBoundaryTimesTests {
@Test func emptyDurations_returnsOnlyZero() {
@@ -97,6 +99,7 @@ import LyrebirdSynth
// MARK: - _envelopeYBounds
@MainActor
@Suite("_envelopeYBounds") struct EnvelopeYBoundsTests {
@Test func emptyLevels_returnsDefaultRange() {
@@ -134,6 +137,7 @@ import LyrebirdSynth
// MARK: - Envelope.valueAtTime boundary sampling
@MainActor
@Suite("Envelope valueAtTime edge cases for plotting") struct EnvelopeValueAtTimePlottingTests {
@Test func clampsBelowZero_returnsFirstLevel() {