ws-m4a: merge ws/absorb (audio/opus, containers/Ogg, ...) for the CELT encoder; m4a fixtures load their helper by path (tools/fixtures/ on sys.path shadowed the xml package)

This commit is contained in:
4DBug committed 2026-10-31 09:07:22 -05:00
commit 29a95ce24f
215 files changed
+24209 -61

No files matched your search

+6 -3
View File
@@ -8,10 +8,13 @@
# tests/gen/m4a_ours.luau our writers' files (tools/fixtures/_m4a_encode.luau over tests/audio/_encode_cases.luau)
# checked by ffmpeg: { name, crc (of our bytes), ffmpeg (decodes bit-exactly), frames,
# tags (ffprobe's view), mp4box (MP4Box -info exit status 0) }
import json, math, os, shutil, struct, subprocess, sys, tempfile, zlib
import importlib.util, json, math, os, shutil, struct, subprocess, tempfile, zlib
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
from _m4a_signal import signal, pack, wav # noqa: E402
# the shared signal module, loaded by path (tools/fixtures/ must not go on sys.path: xml.py there would shadow xml)
_spec = importlib.util.spec_from_file_location("_m4a_signal", os.path.join(os.path.dirname(os.path.abspath(__file__)), "_m4a_signal.py"))
_sig = importlib.util.module_from_spec(_spec)
_spec.loader.exec_module(_sig)
signal, pack, wav = _sig.signal, _sig.pack, _sig.wav
INPUTS = ["src/Formats/audio/m4a", "src/Formats/audio/caf", "src/Formats/codecs/Alac", "src/Formats/containers/IsoBmff",
"tests/audio/_signal.luau", "tests/audio/_encode_cases.luau", "tools/fixtures/_m4a_encode.luau",