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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user