ws-music: loop test compares durations at their own rates

This commit is contained in:
4DBug committed 2026-10-31 09:32:26 -05:00
1 parent 6c3a4ad358
commit 5249d950bb
1 file changed
+1 -1
+1 -1
View File
@@ -105,7 +105,7 @@ do
local _, n = l:read(8000)
total += n
end
t:check(total == 240000 and l.duration == dec.duration, "loop plays past the end")
t:check(total == 240000 and math.abs(l.duration - dec.duration) < 0.01, "loop plays past the end")
end
-- the fuzz pass: decode, and a short render of whatever decodes