NetMD.Audio (NetMD v0.1.0)

Copy Markdown View Source

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 a WAV header for LP2 (2) or LP4 (0) format audio of bytes length.

Functions

aea_header(name \\ "", channels \\ 2, soundgroups \\ 1)

@spec aea_header(String.t(), channels :: 1..2, soundgroups :: non_neg_integer()) ::
  binary()

Build an AEA header for SP audio.

wav_header(format, bytes)

@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.