ws-cleanup: audio codecs out of the format folders (codecs/audio/Opus, Vorbis, Flac, Mpa)
The decoders / encoders are libraries, not the file format: audio/opus/{Celt, CeltTables, CeltEncoder, Mdct, Packet,
Silk, SilkTables, Decoder} -> codecs/audio/Opus; audio/vorbis/{Codebook, Packet, Setup, Tables} ->
codecs/audio/Vorbis; audio/flac/{Frame, Encode} -> codecs/audio/Flac; audio/mp3/{Core, Tables, Header, Encode2,
Encode3, EncTables, Analysis} -> codecs/audio/Mpa (tools/move.py; code unchanged). Each gets an index init.luau.
The format folders keep the file mapping: Ogg Opus / Ogg Vorbis (headers, granules, seeking, the Vorbis encoder's
Ogg writer), native / Ogg FLAC streams and metadata, ID3 / Xing / the MP3 frame index. docs: STYLE says a codec is
not the format. Full suite: 248 runs pass on both runtimes, lint green.
This commit is contained in:
1 parent
f5cf02026d
commit
9941113b7b
39 files changed
+146
-82
No files matched your search
@@ -2,7 +2,7 @@
|
||||
--!optimize 2
|
||||
-- audio/mp3/Stream: the streaming Decoder (Types.Decoder) over a frame index: gapless (LAME delay / padding), exact
|
||||
-- length, sample-accurate seeking. From mp3-luau's Mp3.open / Decoder (same author). Never throws.
|
||||
local Core = require("@formats/audio/mp3/Core")
|
||||
local Core = require("@formats/codecs/audio/Mpa/Core")
|
||||
local Index = require("@formats/audio/mp3/Index")
|
||||
|
||||
local FLAG_RESET, FLAG_OUTPUT = Index.FLAG_RESET, Index.FLAG_OUTPUT
|
||||
|
||||
Reference in new issue
Block a user