The sunau module provides a convenient interface to the Sun
AU sound format. Note that this module is interface-compatible with
the modules aifc and wave.
An audio file consists of a header followed by the data. The fields
of the header are:
Field
Contents
magic word
The four bytes ".snd".
header size
Size of the header, including info, in bytes.
data size
Physical size of the data, in bytes.
encoding
Indicates how the audio samples are encoded.
sample rate
The sampling rate.
# of channels
The number of channels in the samples.
info
ASCII string giving a description of the audio
file (padded with null bytes).
Apart from the info field, all header fields are 4 bytes in size.
They are all 32-bit unsigned integers encoded in big-endian byte
order.