File headers for audio uploaded from a disc, ported from netmd-js.
SP tracks get an AEA header (the ATRAC1 container ffmpeg understands); LP tracks get a WAV header with the ATRAC3 format tag.
Summary
Functions
Build an AEA header for SP audio.
Build a WAV header for LP2 (2) or LP4 (0) format audio of
bytes length.
Functions
@spec aea_header(String.t(), channels :: 1..2, soundgroups :: non_neg_integer()) :: binary()
Build an AEA header for SP audio.
@spec wav_header(format :: 0 | 2, bytes :: non_neg_integer()) :: binary()
Build a WAV header for LP2 (2) or LP4 (0) format audio of
bytes length.