Introduction
A .qoa file holds audio in the Quite OK Audio Format, a
deliberately simple lossy codec by Dominic Szablewski. It stores 16-bit sound with up to 31 channels in 3.2
bits a sample, about a fifth of the size of uncompressed audio, and is built to decode quickly.
Structure
All values are big-endian. An 8-byte file header, the magic qoaf and the number of samples per
channel, is followed by frames. Each frame has an 8-byte header (channel count, sample rate, samples per
channel and frame size), 16 bytes of predictor state for each channel, and 8-byte slices of 20 samples, up to
256 slices per channel, interleaved by channel. A sample count of zero marks a stream of unknown length.
Not described
This page is a first outline. The details of the layout are not yet described here.
Known, not yet covered
- Reference: the slice bit layout, the scale factor and residual tables and the prediction filter, all given in the published specification.
- Viewer: the site has no viewer for this format.
Links
Software
- QOA reference tools – the author’s converter and player, with a list of other programs that support QOA
Developers
- qoa.h – the reference encoder and decoder (C)
Reference
- QOA specification – version 1.1, one page