Previous Page Up One Level About this document... for information on suggesting changes. ./usr/share/doc/python2.2/html/lib/module-sunau.html0000644000000000000000000002027110202373017022407 0ustar rootroot00000000000000 14.4 sunau -- Read and write Sun AU files
Previous Page Up One Level Next Page Python Library Reference Contents Module Index Index
Previous: 14.3 aifc Up: 14. Multimedia Services Next: 14.4.1 AU_read Objects

14.4 sunau -- Read and write Sun AU files

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 b