Inferno audio files accepted by commands such as
have a simple format.
The file contains a header consisting of
non-empty lines of text specifying the data format and characteristics,
followed by an empty line,
followed by the audio data in binary form.
The data can be copied
directly to a suitable audio device (see
Each header line corresponds to a command that can be written to
the control file
The first line of the header must be a
other commands can appear in any order.
The commands available are:
- rate n
- The data was recorded at
Hz, typically one of
but other values are legal.
- chans n
- There are
channels of audio data (eg, 1 for mono and 2 for stereo).
- bits n
- Each sample is
bits (typically 8 or 16).
- enc e
- The string
gives the recording format, and
will usually be one of the following:
The audio data is stored with a sample from each channel in turn
(`left' sample first if stereo, regardless of encoding or data size).
Data encoded as
is little-endian, 2's complement if 16-bit, but unsigned if 8 bit.
encoding uses 4-bit samples (two mono samples or one stereo sample per byte, again little-endian).