v1.6.0 release: soundfile format expansion (WAV int depths + RF64 >4GB, AIFF/CAF, AAC/ALAC compressed, 4GB guard, unified AudioFileFormat)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -282,6 +282,28 @@ struct LyrebirdEventListRecordingTests {
|
||||
eventList.killAll()
|
||||
}
|
||||
|
||||
@Test("record() rejects compressed formats — recording stays disabled", arguments: [
|
||||
AudioFileFormat.aacHigh, .aacMedium, .alac
|
||||
])
|
||||
func testRecordRejectsCompressed(format: AudioFileFormat) throws {
|
||||
let tempDir: URL = makeTempDir()
|
||||
defer { removeTempDir(tempDir) }
|
||||
|
||||
let engine: SynthesisEngine = makeRecordingTestEngine()
|
||||
let eventList: LyrebirdEventList = try LyrebirdEventList(
|
||||
id: "compressed-reject-list",
|
||||
events: [],
|
||||
engine: engine,
|
||||
bus: AudioBus(index: 0, channelCount: 2)
|
||||
)
|
||||
|
||||
// Compressed stems are unsupported (DiskOut is PCM/RF64 only) — record() must
|
||||
// refuse and leave recording disabled rather than fail silently per-process.
|
||||
eventList.record(directory: tempDir, format: format)
|
||||
#expect(eventList.isRecording == false)
|
||||
#expect(eventList.recordDirectory == nil)
|
||||
}
|
||||
|
||||
// MARK: - Test 2: filename format verification
|
||||
|
||||
@Test("stem filename encodes eventListID, offset, processID, playIndex")
|
||||
|
||||
Reference in New Issue
Block a user