Tik-76.115 Individual Project: Guinea Pig
$Id: fileformat.html,v 2.2 1996/04/22 14:10:03 hynde Exp $
Sound File Formats
The sound player can read three types of files:
AIFF/AIFC files,
RIFF WAVE (.WAV) files and
raw data files.
Samples in other formats should be converted to one of the supported
formats, for example, with SOX
(for example) or with other tools. Support for more file types may be
added if need be and we have the time to spare.
AIFF/AIFF-C
Audio Interchange File Format AIFF-C (AIFF-C) is based
on Audio IFF (AIFF) which conforms to the "EA IFF 85" Standard for
Interchange Format Files developed by Electronic Arts. AIFF-C is
widely used in at least Silicon Graphics and Machintosh environments.
Currently AIFF-C files with 1-N channels, 9-16 bits per sample,
44.1KHz sampling rate and no compression are supported.
More info:
The CWI
Audio File Formats Guide: AIFF
RIFF WAVE (.WAV)
WAV files with 1-N channels and 16 bits per sample are
supported. WAV-files are widely used in the evil
Micro$oft
environments.
More info:
The CWI
Audio File Formats Guide: RIFF WAVE
Raw data files
Sound samples may also be stored as raw data with 1-N channels in the
same file. The channels should be inteleaved the same way as they are
in the AIFF-C files. When opening a raw data file more information
about the data has to be supplied by the user (number of channels,
endianess, etc.). The raw sample format is by default as follows:
- Bits: 16
- Sign: Signed (2's complement)
- Byteorder: hostbyteorder
- Channels: 1
·
Sound Player Index
·
Document index
·
Guinea Pig
·