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 -5
View File
@@ -1,6 +1,5 @@
-- audio/adx tests: ffmpeg's ADX files (version 3) and a version 4 file with history and loop points, bit-exact with
-- vgmstream (tools/fixtures/adx.py) through decode and open with seeks; our encoder's files as vgmstream decodes them
-- (equal to our decode, loops reported) and their quality; header errors; the api; the fuzz pass.
-- audio/adx tests: ffmpeg's ADX files and a version 4 file with loop points, bit-exact with vgmstream.
-- Fixtures: tools/fixtures/adx.py.
local T = require("@tests/T")
local Adx = require("@rosetta/audio/adx")
local Bytes = require("@rosetta/core/Bytes")
@@ -24,7 +23,6 @@ for _, c in Cases do
end
t:note("%d files bit-exact with vgmstream", #Cases)
-- ------------------------------------------------------------------------------------------------ encoder
local audio = Types.Audio.new(Sig.rate, Sig.channels, Sig.frames)
buffer.writestring(audio.samples, 0, Sig.data)
for _, c in Ours do
@@ -49,7 +47,6 @@ do
t:check(e3 and e3.code == Err.ARG, "bad cutoff")
end
-- ------------------------------------------------------------------------------------------------ errors
do
local base = Cases[1].data
local function patch(at: number, bytes: string): buffer