tests/audio: comments: specs only

This commit is contained in:
4DBug committed 2026-11-01 01:51:26 -05:00
1 parent 75ddfb4068
commit 0eec255bfb
30 files changed
+66 -244

No files matched your search

+2 -7
View File
@@ -1,7 +1,5 @@
-- audio/caf tests: ALAC CAF from ffmpeg bit-exact; AAC CAF (ffmpeg's ADTS frames wrapped by the fixture) against
-- ffmpeg's float decode; our CAF writer (PCM 16 / 24-bit, ALAC; re-encoded here and compared with the bytes ffmpeg
-- decoded bit-exactly); PCM layouts (little / big endian, float) through our writer + a hand-built header; info tags;
-- seek; errors; the fuzz no-throw pass. Fixtures: tools/fixtures/m4a.py.
-- audio/caf tests: ALAC CAF from ffmpeg bit-exact; AAC CAF against ffmpeg's float decode; our writer's bytes.
-- Fixtures: tools/fixtures/m4a.py.
local T = require("@tests/T")
local Caf = require("@rosetta/audio/caf")
local Bytes = require("@rosetta/core/Bytes")
@@ -128,7 +126,6 @@ do
t:check(le and math.abs(buffer.readf32(le.samples, 4) - 0.5) < 1e-7 and math.abs(buffer.readf32(le.samples, 16) + 1) < 1e-7, "24-bit LE values")
end
-- seek
do
local c = Alac[#Alac]
local whole = Caf.decode(reader(c.data)) :: any
@@ -145,7 +142,6 @@ do
end
end
-- errors
do
t:eq(Caf.sniff(reader("caff\0\2\0\0")), 0, "sniff: wrong version")
local _, e = Caf.decode(reader("caff\0\1\0\0"))
@@ -154,7 +150,6 @@ do
t:check(e2 and e2.code == Err.ARG, "bad codec: " .. tostring(e2))
end
-- fuzz
do
local samples = {}
for _, c in Alac do