From 3f2be59a65176905d14412c8d7c496cf3f453e28 Mon Sep 17 00:00:00 2001 From: 4DBug Date: Sat, 31 Oct 2026 09:05:04 -0500 Subject: [PATCH] ws-audio: tests/audio/flac.luau: caps.encode is now true, F.save flac works --- tests/audio/flac.luau | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/audio/flac.luau b/tests/audio/flac.luau index 75478d0..3f0f9a3 100644 --- a/tests/audio/flac.luau +++ b/tests/audio/flac.luau @@ -156,8 +156,8 @@ do t:check(a and a.frames == fx.frames, "F.audio.load") local d = F.audio.open(byName.s16_l3.data) t:check(d and d.frames == byName.s16_l3.frames, "F.audio.open") - local _, se = F.save(a, nil, { format = "flac" }) - t:check(se and se.code == Err.UNSUPPORTED, "F.save flac is read-only here: " .. tostring(se)) + local saved, se = F.save(a, nil, { format = "flac" }) -- the encoder (ws-audio) + t:check(saved and F.audio.load(saved).frames == fx.frames, "F.save flac: " .. tostring(se)) end -- a damaged frame is dropped, the rest decodes