Audio Interchange File Format

Last updated
Audio Interchange File Format
(AIFF)
Filename extension
.aiff
.aif
.aifc
Internet media type
audio/x-aiff
audio/aiff
Type code AIFF, AIFC
Uniform Type Identifier (UTI) public.aiff-audio
public.aifc-audio
Developed by Apple Inc.
Initial release21 January 1988;36 years ago (1988-01-21) [1]
Latest release
1.3
January 4, 1989;35 years ago (1989-01-04)
AIFF-C / July 1991;32 years ago (1991-07) [2]
Type of format audio file format, container format
Extended from IFF (File format)

Audio Interchange File Format (AIFF) 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 (IFF, widely used on Amiga systems) and is most commonly used on Apple Macintosh computer systems.

Contents

The audio data in most AIFF files is uncompressed pulse-code modulation (PCM). 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 macOS

With the development of the OS X operating system now known as macOS, Apple created a new type of AIFF which is, in effect, an alternative little-endian byte order format. [3] [4]

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 (twos spelled backwards). 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. [5]

Apple uses this new little-endian AIFF type as its standard on macOS. 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 macOS 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 macOS, 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 [6] 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.

Apple Loops use either the .aiff (or .aif) or .caf extension regardless of type.

Data format

An AIFF file is divided into a number of chunks. [7] Each chunk is identified by a chunk ID more broadly referred to as FourCC.

Types of chunks found in AIFF files:

Metadata

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 (XMP) data in it. [8]

Common compression types

AIFF supports only uncompressed PCM data. AIFF-C also supports compressed audio formats, which 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:

AIFF-C common compression types [1] [9] [10]
Compression typeCompression nameDataSource
NONEnot compressedPCM, big-endianApple Inc.
sowtnot compressedPCM, little-endianApple Inc.
fl3232-bit floating point IEEE 32-bit floatApple Inc.
fl6464-bit floating pointIEEE 64-bit floatApple Inc.
alawALaw 2:18-bit ITU-T G.711 A-law Apple Inc.
ulawμLaw 2:18-bit ITU-T G.711 μ-law Apple Inc.
ALAW CCITT G.711 A-law8-bit ITU-T G.711 A-law (64 kbit/s)SGI
ULAWCCITT G.711 u-law8-bit ITU-T G.711 μ-law (64 kbit/s)SGI
FL32Float 32IEEE 32-bit floatSoundHack & Csound
ADP44:1 Intel/DVI ADPCM Stéphane Tavenard (Audio Convert/Player) AmigaOS
ima4 IMA 4:1
ACE2ACE 2-to-1Apple IIGS ACE (Audio Compression/Expansion)
ACE8ACE 8-to-3
DWVWDelta with variable word widthTX16W Typhoon
MAC3MACE 3-to-1Apple Inc.
MAC6MACE 6-to-1Apple Inc.
Qclp Qualcomm PureVoiceQualcomm
QDMC QDesign MusicQDesign
rt24RT24 50:1Voxware
rt29RT29 50:1Voxware
SDX2Square-Root-DeltaBig-endian3DO (Panasonic) / Mac (Apple)

See also

Related Research Articles

An audio file format is a file format for storing digital audio data on a computer system. The bit layout of the audio data is called the audio coding format and can be uncompressed, or compressed to reduce the file size, often using lossy compression. The data can be a raw bitstream in an audio coding format, but it is usually embedded in a container format or an audio data format with defined storage layer.

The Au file format is a simple audio file format introduced by Sun Microsystems. The format was common on NeXT systems and on early Web pages. Originally it was headerless, being simply 8-bit μ-law-encoded data at an 8000 Hz sample rate. Hardware from other vendors often used sample rates as high as 8192 Hz, often integer multiples of video clock signal frequencies. Newer files have a header that consists of six unsigned 32-bit words, an optional information chunk which is always of non-zero size, and then the data.

<span class="mw-page-title-main">PNG</span> Family of lossless compression file formats for image files

Portable Network Graphics is a raster-graphics file format that supports lossless data compression. PNG was developed as an improved, non-patented replacement for Graphics Interchange Format (GIF)—unofficially, the initials PNG stood for the recursive acronym "PNG's not GIF".

Waveform Audio File Format is an audio file format standard, developed by IBM and Microsoft, for storing an audio bitstream on personal computers. It is the main format used on Microsoft Windows systems for uncompressed audio. The usual bitstream encoding is the linear pulse-code modulation (LPCM) format.

Audio Video Interleave is a proprietary multimedia container format and Windows standard introduced by Microsoft in November 1992 as part of its Video for Windows software. AVI files can contain both audio and video data in a file container that allows synchronous audio-with-video playback. Like the DVD video format, AVI files support multiple streaming audio and video, although these features are seldom used.

Interchange File Format (IFF) is a generic digital container file format originally introduced by Electronic Arts in 1985 to facilitate transfer of data between software produced by different companies.

The JPEG File Interchange Format (JFIF) is an image file format standard published as ITU-T Recommendation T.871 and ISO/IEC 10918-5. It defines supplementary specifications for the container format that contains the image data encoded with the JPEG algorithm. The base specifications for a JPEG container format are defined in Annex B of the JPEG standard, known as JPEG Interchange Format (JIF). JFIF builds over JIF to solve some of JIF's limitations, including unnecessary complexity, component sample registration, resolution, aspect ratio, and color space. Because JFIF is not the original JPG standard, one might expect another MIME type. However, it is still registered as "image/jpeg".

Resource Interchange File Format (RIFF) is a generic file container format for storing data in tagged chunks. It is primarily used for audio and video, though it can be used for arbitrary data.

Motion JPEG is a video compression format in which each video frame or interlaced field of a digital video sequence is compressed separately as a JPEG image.

ZIP is an archive file format that supports lossless data compression. A ZIP file may contain one or more files or directories that may have been compressed. The ZIP file format permits a number of compression algorithms, though DEFLATE is the most common. This format was originally created in 1989 and was first implemented in PKWARE, Inc.'s PKZIP utility, as a replacement for the previous ARC compression format by Thom Henderson. The ZIP format was then quickly supported by many software utilities other than PKZIP. Microsoft has included built-in ZIP support in versions of Microsoft Windows since 1998 via the "Plus! 98" addon for Windows 98. Native support was added as of the year 2000 in Windows ME. Apple has included built-in ZIP support in Mac OS X 10.3 and later. Most free operating systems have built in support for ZIP in similar manners to Windows and macOS.

8-Bit Sampled Voice (8SVX) is an audio file format standard developed by Electronic Arts for the Amiga computer series. It is a data subtype of the IFF file container format. It typically contains linear pulse-code modulation (LPCM) digital audio.

The Apple Lossless Audio Codec (ALAC), also known as Apple Lossless, or Apple Lossless Encoder (ALE), is an audio coding format, and its reference audio codec implementation, developed by Apple Inc. for lossless data compression of digital music. After initially keeping it proprietary from its inception in 2004, in late 2011 Apple made the codec available open source and royalty-free. Traditionally, Apple has referred to the codec as Apple Lossless, though more recently it has begun to use the abbreviated term ALAC when referring to the codec.

A FourCC is a sequence of four bytes used to uniquely identify data formats. It originated from the OSType or ResType metadata system used in classic Mac OS and was adopted for the Amiga/Electronic Arts Interchange File Format and derivatives. The idea was later reused to identify compressed data types in QuickTime and DirectShow.

WavPack is a free and open-source lossless audio compression format and application implementing the format. It is unique in the way that it supports hybrid audio compression alongside normal compression which is similar to how FLAC works. It also supports compressing a wide variety of lossless formats, including various variants of PCM and also DSD as used in SACDs, together with its support for surround audio.

This article compares Unicode encodings. Two situations are considered: 8-bit-clean environments, and environments that forbid use of byte values that have the high bit set. Originally such prohibitions were to allow for links that used only seven data bits, but they remain in some standards and so some standard-conforming software must generate messages that comply with the restrictions. Standard Compression Scheme for Unicode and Binary Ordered Compression for Unicode are excluded from the comparison tables because it is difficult to simply quantify their size.

Flash Video is a container file format used to deliver digital video content over the Internet using Adobe Flash Player version 6 and newer. Flash Video content may also be embedded within SWF files. There are two different Flash Video file formats: FLV and F4V. The audio and video data within FLV files are encoded in the same way as SWF files. The F4V file format is based on the ISO base media file format, starting with Flash Player 9 update 3. Both formats are supported in Adobe Flash Player and developed by Adobe Systems. FLV was originally developed by Macromedia. In the early 2000s, Flash Video was the de facto standard for web-based streaming video. Users include Hulu, VEVO, Yahoo! Video, metacafe, Reuters.com, and many other news providers.

The Apple Icon Image format (.icns) is an icon format used in Apple Inc.'s macOS. It supports icons of 16 × 16, 32 × 32, 48 × 48, 128 × 128, 256 × 256, 512 × 512 points at 1x and 2x scale, with both 1- and 8-bit alpha channels and multiple image states. The fixed-size icons can be scaled by the operating system and displayed at any intermediate size.

A file format is a standard way that information is encoded for storage in a computer file. It specifies how bits are used to encode information in a digital storage medium. File formats may be either proprietary or free.

<span class="mw-page-title-main">Apple Disk Image</span> File format developed by Apple and used by macOS

AppleDisk Image is a disk image format commonly used by the macOS operating system. When opened, an Apple Disk Image is mounted as a volume within the Finder.

References

  1. 1 2 Apple Computer, Inc. (1989-01-04), Audio Interchange File Format, A Standard for Sampled Sound Files, Version 1.3 (PDF), retrieved 2010-03-21
  2. P. Kabal (2005-03-15). "Audio File Format Specifications - AIFF / AIFF-C Specifications". McGill University. Retrieved 2010-03-21.
  3. "Speech Synthesis Manager - OS X Manual". Apple. 2008-10-29. Archived from the original on 2009-11-28.
  4. "Supported Audio File and Data Formats in Mac OS X". Apple. 2008-11-13. Archived from the original on 2009-05-23.
  5. "Technical Q&A QTMRF04: QuickTime Sound". Apple. 1995-05-01. Archived from the original on 2022-07-05. Retrieved 2009-11-09.
  6. "Logic Studio - Plug-ins & Sounds". Apple. Archived from the original on 2013-07-20. Retrieved 2010-04-30.
  7. Kabal, Peter (2017-09-20). "Audio File Format Specifications". MMSP Lab, ECE, McGill University. Archived from the original on 2022-07-24.
  8. "AIFF Tagging". November 18, 2013. Archived from the original on 2022-04-07.
  9. Tom Erbe (1999). "AIFF-C Compression Types and Names". Archived from the original on 2006-06-20. Retrieved 2010-03-21.
  10. "AIFF-hul Module". JSTOR/Harvard Object Validation Environment. 2005-05-09. Archived from the original on 2010-06-29. Retrieved 2010-03-21.