ws-audio: tests/audio/flac.luau: caps.encode is now true, F.save flac works
This commit is contained in:
1 parent
73004015c8
commit
3f2be59a65
1 file changed
+2
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user