Adopted Span and MutableSpan for buffers across the library to adapt to Swift 6.4.

This commit is contained in:
2026-09-18 12:06:21 +02:00
parent 89c8d7a04c
commit 4cb0f8f500
18 changed files with 127 additions and 83 deletions
+4 -2
View File
@@ -146,7 +146,8 @@ struct WrapperTests {
var produced = 0
let source = Sound.addSource(stereo: false) { left, right in
produced += left.count
#expect(right == nil)
let isMono = right.isEmpty // #expect cannot capture a span
#expect(isMono)
return true
}
#expect(Sound.CallbackSource.live.count == baseline + 1)
@@ -280,7 +281,8 @@ struct WrapperTests {
let effect = Sound.Effect(processor: { left, right, _ in
_ = token
processed += left.count
#expect(right == nil)
let isMono = right.isEmpty // #expect cannot capture a span
#expect(isMono)
return true
})