Audio Interchange File Format


Audio Interchange File Format is an audio file format standard used for storing sound data for personal computers and other electronic audio devices. The format was developed by Apple Inc. in 1988 based on Electronic Arts' Interchange File Format and is most commonly used on Apple Macintosh computer systems.
The audio data in most AIFF files is uncompressed pulse-code modulation. This type of AIFF file uses much more disk space than lossy formats like MP3—about 10 MB for one minute of stereo audio at a sample rate of 44.1 kHz and a bit depth of 16 bits. There is also a compressed variant of AIFF known as AIFF-C or AIFC, with various defined compression codecs.
In addition to audio data, AIFF can include loop point data and the musical note of a sample, for use by hardware samplers and musical applications.
The file extension for the standard AIFF format is .aiff or .aif. For the compressed variants it is supposed to be .aifc, but.aiff or.aif are accepted as well by audio applications supporting the format.

AIFF on Mac OS X

With the development of the Mac OS X operating system, Apple created a new type of AIFF which is, in effect, an alternative little-endian byte order format.
Because the AIFF architecture has no provision for alternative byte order, Apple used the existing AIFF-C compression architecture, and created a "pseudo-compressed" codec called sowt. The only difference between a standard AIFF file and an AIFF-C/sowt file is the byte order; there is no compression involved at all.
Apple uses this new little-endian AIFF type as its standard on Mac OS X. When a file is imported to or exported from iTunes in "AIFF" format, it is actually AIFF-C/sowt that is being used. When audio from an audio CD is imported by dragging to the Mac OS X Desktop, the resulting file is also an AIFF-C/sowt. In all cases, Apple refers to the files simply as "AIFF", and uses the ".aiff" extension.
For the vast majority of users this technical situation is completely unnoticeable and irrelevant. The sound quality of standard AIFF and AIFF-C/sowt are identical, and the data can be converted back and forth without loss. Users of older audio applications, however, may find that an AIFF-C/sowt file will not play, or will prompt the user to convert the format on opening, or will play as static.
All traditional AIFF and AIFF-C files continue to work normally on Mac OS X, and many third-party audio applications as well as hardware continue to use the standard AIFF big-endian byte order.

AIFF Apple Loops

Apple has also created another recent extension to the AIFF format in the form of Apple Loops used by GarageBand and Logic Pro, which allows the inclusion of data for pitch and tempo shifting by an application in the more common variety, and MIDI-sequence data and references to GarageBand playback instruments in another variety.
AppleLoops use either the.aiff or.caf extension regardless of type.

Data format

An AIFF file is divided into a number of chunks. Each chunk is identified by a chunk ID more broadly referred to as FourCC.
Types of chunks found in AIFF files:
AIFF files can store metadata in Name, Author, Comment, Annotation, and Copyright chunks. An ID3v2 tag chunk can also be embedded in AIFF files, as well as an Application Chunk with Extensible Metadata Platform data in it.

Common compression types

AIFF supports only uncompressed PCM data. AIFF-C also supports compressed audio formats, that can be specified in the "COMM" chunk. The compression type is "NONE" for PCM audio data. The compression type is accompanied by a printable name. Common compression types and names include, but are not limited to:
Compression typeCompression nameDataSource
NONEnot compressedPCM, big-endianApple Inc.
sowtnot compressedPCM, little-endianApple Inc.
fl3232-bit floating pointIEEE 32-bit floatApple Inc.
fl6464-bit floating pointIEEE 64-bit floatApple Inc.
alawALaw 2:18-bit ITU-T G.711 A-lawApple Inc.
ulawμLaw 2:18-bit ITU-T G.711 μ-lawApple Inc.
ALAWCCITT G.711 A-law8-bit ITU-T G.711 A-law SGI
ULAWCCITT G.711 u-law8-bit ITU-T G.711 μ-law SGI
FL32Float 32IEEE 32-bit floatSoundHack & Csound
ADP44:1 Intel/DVI ADPCMStéphane Tavenard AmigaOS
ima4IMA 4:1
ACE2ACE 2-to-1Apple IIGS ACE
ACE8ACE 8-to-3
DWVWDelta with variable word widthTX16W Typhoon
MAC3MACE 3-to-1Apple Inc.
MAC6MACE 6-to-1Apple Inc.
QclpQualcomm PureVoiceQualcomm
QDMCQDesign MusicQDesign
rt24RT24 50:1Voxware
rt29RT29 50:1Voxware
SDX2Square-Root-DeltaBig-endian3DO / MAC