v2.1.0 release: Swift 6.4 modernization

Typed throws across the closed-error-set APIs (OSC, MIDI, engine add/schedule,
bus/config/parameter, and the WAV/RF64/Spectral file codecs — source-compatible
narrowing, new .ioFailure cases), plus internal hardening: NSLock-guarded
scheduling/MIDI state moved to Mutex<State>, and the Spectral/FFT scratch owners
moved to a ~Copyable RTScratchBuffer RAII buffer. No API or behavioral change.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-09-24 19:54:59 -07:00
parent 2c20b02e59
commit 844dc4d9cd
42 changed files with 835 additions and 640 deletions
+6 -1
View File
@@ -72,7 +72,12 @@ reader.close()
`WavFileError` — `.cannotCreate`, `.cannotOpen`, `.notWave`,
`.unsupportedFormat(formatTag:bitsPerSample:)`, `.truncated`,
`.fileTooLarge(bytes:)`.
`.fileTooLarge(bytes:)`, `.ioFailure(String)`.
`.ioFailure` carries the description of an underlying `FileHandle`
read / seek / write / close failure, funneled from the platform I/O layer so
the reader and writer surface a single typed error rather than a raw
`NSError`.
These escape `NRTDriver` and `LyrebirdBuffer` file I/O **on non-Apple
platforms**, where this codec is the backend. Error handling written against