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 -6
View File
@@ -1,7 +1,5 @@
-- audio/vorbis encoder tests: every fixture-step encode (qualities -1 .. 10, mono / stereo / 5.1, 8 .. 96 kHz, odd
-- lengths, silence) passes ogginfo, decodes in oggdec (libvorbisfile) with the exact input length and an SNR over a
-- per-quality floor, and in ffmpeg; our own decoder gives the same; the codebooks are valid prefix codes; streaming
-- from a Decoder gives the same bytes; tags round-trip; option errors. Fixtures: tools/fixtures/vorbis_enc.py.
-- audio/vorbis encoder tests: each fixture-step encode passes ogginfo, decodes in oggdec with the exact length and
-- an SNR over a per-quality floor, and in ffmpeg. Fixtures: tools/fixtures/vorbis_enc.py.
local T = require("@tests/T")
local Vorbis = require("@rosetta/audio/vorbis")
local VEnc = require("@rosetta/audio/vorbis/Encode")
@@ -75,7 +73,6 @@ for _, e in Enc do
end
t:note("%d encodes pass ogginfo / oggdec / ffmpeg; lowest SNR %.1f dB", #Enc, minSnr)
-- streaming, tags
do
local a = audio("music_2_3000_44100")
local f1 = Vorbis.encode(a) :: buffer
@@ -92,7 +89,6 @@ do
t:check(e0 and e0.frames == 0, "empty input")
end
-- errors
do
local a = Types.Audio.new(44100, 2, 10)
local function code(v: any, o: any): string?