--background--

NOTES

   QOA spec v1.0 (2023-04-24):
     - All values are big endian.
     - sf_quant is 4 bits, 20 residuals at 3 bits each per slice.

DESCRIPTION

   Reggae encoder that converts raw PCM (MMFC_AUDIO_INT16) into a QOA bitstream.

   Output is a *raw QOA frame stream* (concatenated QOA frames) **without** the 8-byte file header.

   This is meant to be fed into a muxer/container writer that will add the outer QOA file header (magic "qoaf" + samples-per-channel).

   Intended chain (typical):
     source -> qoa.encoder -> muxer/container -> stream (file)

   Supported input formats:
     - MMFC_AUDIO_INT16 (interleaved PCM, 16-bit signed)

   Output format:
     - MMF_AUDIO_QOA (custom format id for Reggae pipes)

 ARGUMENTS (MMA_Arguments):
   Template: "STREAMING/S (ignored: output is raw frames without outer file header)"
     - STREAMING: force file header samples=0 even if stream length is known.