tests/audio: comments: specs only
This commit is contained in:
1 parent
75ddfb4068
commit
0eec255bfb
30 files changed
+66
-244
No files matched your search
@@ -1,8 +1,5 @@
|
||||
-- audio/tta tests: every fixture from tools/fixtures/tta.py (ttaenc 3.4.1: 8 / 16 / 24 bits, 1 - 6 channels, odd
|
||||
-- rates and lengths, several frames, silence, noise; the FATE sample inside.tta cut mid-file) decoded bit-exact
|
||||
-- against `ttaenc -d`; seeking; f32 scaling and output reuse; decode() from a sub-range Reader; an ID3v2 tag in front
|
||||
-- and an APEv2 tag at the end; password-protected files (UNSUPPORTED); header / seek table / frame CRCs; sniff; the
|
||||
-- api; the fuzz pass. Fixtures: tools/fixtures/tta.py.
|
||||
-- audio/tta tests: tools/fixtures/tta.py's files (ttaenc 3.4.1, FATE's inside.tta) bit-exact against `ttaenc -d`.
|
||||
-- Fixtures: tools/fixtures/tta.py.
|
||||
local T = require("@tests/T")
|
||||
local Tta = require("@rosetta/audio/tta")
|
||||
local Bytes = require("@rosetta/core/Bytes")
|
||||
@@ -72,7 +69,6 @@ do
|
||||
t:eq(Tta.sniff(Bytes.reader(buffer.fromstring("RIFF"))), 0, "sniff RIFF")
|
||||
end
|
||||
|
||||
-- the api
|
||||
do
|
||||
local fx = byName.s16
|
||||
t:eq(F.detect(buffer.fromstring(fx.data)), "tta", "detect")
|
||||
@@ -80,7 +76,7 @@ do
|
||||
t:check(a and a.frames == fx.frames and a.meta.source.format == "tta", "F.audio.load")
|
||||
end
|
||||
|
||||
-- the fuzz pass (the frame CRC rejects most mutations; the second set skips it to reach the decoder)
|
||||
-- the frame CRC rejects most mutations; the second fuzz set skips it to reach the decoder
|
||||
local samples = {}
|
||||
for _, name in { "s16", "mono", "s24", "u8", "ch6" } do
|
||||
table.insert(samples, buffer.fromstring(byName[name].data))
|
||||
|
||||
Reference in new issue
Block a user