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
An apple is a round, edible fruit produced by an apple tree (''Malus'' spp.). Fruit trees of the orchard or domestic apple (''Malus domestica''), the most widely grown in the genus, are agriculture, cultivated worldwide. The tree originated ...
for
lossless data compression
Lossless compression is a class of data compression that allows the original data to be perfectly reconstructed from the compressed data with no loss of information. Lossless compression is possible because most real-world data exhibits Redundanc ...
of digital
music
Music is the arrangement of sound to create some combination of Musical form, form, harmony, melody, rhythm, or otherwise Musical expression, expressive content. Music is generally agreed to be a cultural universal that is present in all hum ...
. After initially keeping it
proprietary from its inception in 2004, in late 2011 Apple made the codec available
open source
Open source is source code that is made freely available for possible modification and redistribution. Products include permission to use and view the source code, design documents, or content of the product. The open source model is a decentrali ...
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.
ALAC data is frequently stored within an
MP4 container
A container is any receptacle or enclosure for holding a product used in storage, packaging, and transportation, including shipping.
Things kept inside of a container are protected on several sides by being inside of its structure. The term ...
with the
filename extension
A filename extension, file name extension or file extension is a suffix to the name of a computer file (for example, .txt, .mp3, .exe) that indicates a characteristic of the file contents or its intended use. A filename extension is typically d ...
''
.m4a''. This extension is also used by Apple for
AAC (which is a
lossy format) in an MP4 container (same container, different audio encoding). ALAC can also be used by the
.CAF file type container, though this is much less common.
Codec
ALAC supports up to 8 channels of audio at 16, 20, 24 and 32 bit depth with a maximum sample rate of 384 kHz.
ALAC also does not use any
DRM scheme; but by the nature of the MP4
container
A container is any receptacle or enclosure for holding a product used in storage, packaging, and transportation, including shipping.
Things kept inside of a container are protected on several sides by being inside of its structure. The term ...
, it is feasible that DRM could be applied to ALAC much in the same way it is applied to files in other QuickTime containers.
According to Apple, audio files compressed with its lossless codec will use up "about half the storage space" that the uncompressed data would require. Testers using a selection of music have found that compressed files are about 40% to 60% the size of the originals depending on the kind of music, which is similar to other lossless formats.
ALAC has been measured to require around four times as much CPU power to decode than FLAC does,
with implications for battery life on limited-power devices. Still, the format has been recommended for older
iPod
The iPod is a series of portable media players and multi-purpose mobile devices that were designed and marketed by Apple Inc. from 2001 to 2022. The iPod Classic#1st generation, first version was released on November 10, 2001, about mon ...
devices based on claims of lower power usage.
Partly because of the use of an MP4 container, ALAC does not contain integrated error checking.
ALAC is not a variant of
AAC (which is a
lossy format), but rather an unrelated lossless format that uses
linear prediction (similar to other lossless codecs).
History
The
data compression
In information theory, data compression, source coding, or bit-rate reduction is the process of encoding information using fewer bits than the original representation. Any particular compression is either lossy or lossless. Lossless compressi ...
software for encoding into ALAC files, Apple Lossless Encoder, was introduced into the Mac OS X
Core Audio framework on April 28, 2004, together with the
QuickTime 6.5.1 update, thus making it available in
iTunes
iTunes is a media player, media library, and mobile device management (MDM) utility developed by Apple. It is used to purchase, play, download and organize digital multimedia on personal computers running the macOS and Windows operating s ...
since version 4.5 and above, and its replacement, the Music application.
The codec is also used in the
AirPort
An airport is an aerodrome with extended facilities, mostly for commercial Aviation, air transport. They usually consist of a landing area, which comprises an aerially accessible open space including at least one operationally active surf ...
and
AirPlay implementation.
David Hammerton and
Serafina Brocious analyzed and
reverse engineered the codec without any documents on the format. On March 5, 2005, Hammerton published a simple
open source
Open source is source code that is made freely available for possible modification and redistribution. Products include permission to use and view the source code, design documents, or content of the product. The open source model is a decentrali ...
decoder written in the
C programming language on the basis of the work.
The Apple Lossless Encoder (and decoder) were released as open source software under the
Apache License
The Apache License is a permissive free software license written by the Apache Software Foundation (ASF). It allows users to use the software for any purpose, to distribute it, to modify it, and to distribute modified versions of the software ...
version 2.0 on October 27, 2011.
On May 17, 2021, Apple announced that they would begin offering lossless audio in
Apple Music
Apple Music is an audio and video streaming service developed by Apple Inc. Users can select music to stream to their device on-demand, or listen to existing playlists. The service also includes the sister internet radio stations Apple Musi ...
in June 2021, with all lossless music being encoded using ALAC.
Software
All current iOS devices can play ALAC encoded files.
However, in the
iOS 9.3.6 (13G37) update, which was released on July 22, 2019, after
iOS 9.3.5 (13G36) on August 25, 2016, as the last update for the
iPhone 4S and aimed at fixing security issues, etc., there was still a bug with the ALAC codec in
Music
Music is the arrangement of sound to create some combination of Musical form, form, harmony, melody, rhythm, or otherwise Musical expression, expressive content. Music is generally agreed to be a cultural universal that is present in all hum ...
app.
This issue involved songs with the ALAC codec being synced internally to the phone by
iTunes
iTunes is a media player, media library, and mobile device management (MDM) utility developed by Apple. It is used to purchase, play, download and organize digital multimedia on personal computers running the macOS and Windows operating s ...
(known as
Apple Music
Apple Music is an audio and video streaming service developed by Apple Inc. Users can select music to stream to their device on-demand, or listen to existing playlists. The service also includes the sister internet radio stations Apple Musi ...
as of June 3, 2019), and when playing that song/album, the album covert from another album (in a non-ALAC format) would be displayed.
The open source library
libavcodec incorporates both a decoder and an encoder for the ALAC format, which means that
media players based on that library (including
VLC media player
VLC media player (previously the VideoLAN Client) is a free and open-source software, free and open-source, software portability, portable, cross-platform media player software and streaming media Server (computing), server developed by the Vide ...
and
MPlayer
MPlayer is a free and open-source media player software application. It is available for Linux, OS X and Microsoft Windows. Versions for OS/2, Syllable Desktop, Syllable, AmigaOS, MorphOS and AROS Research Operating System are also available. A ...
, as well as many media center applications for
home theater computers, such as
Plex,
Kodi, and
Boxee) are able to play ALAC files.
The introduction of the
BlackBerry OS 10 in 2013 made it possible to play the ALAC Audio Codec.
Earlier, the
BlackBerry OS 7 operating system in 2011 had enabled the playback of the
FLAC on
BlackBerry phones.
As of 2015,
Windows 10
Windows 10 is a major release of Microsoft's Windows NT operating system. The successor to Windows 8.1, it was Software release cycle#Release to manufacturing (RTM), released to manufacturing on July 15, 2015, and later to retail on July 2 ...
includes support for ALAC encoding and decoding, thereby enabling other media players to use it, e.g.
Windows Media Player
Windows Media Player (WMP, officially referred to as Windows Media Player Legacy to retronym, distinguish it from Windows Media Player (2022), the new Windows Media Player introduced with Windows 11) is the first media player (application soft ...
when ripping CDs or the
Spotify
Spotify (; ) is a List of companies of Sweden, Swedish Music streaming service, audio streaming and media service provider founded on 23 April 2006 by Daniel Ek and Martin Lorentzon. , it is one of the largest providers of music streaming services ...
desktop client for playback of local .m4a files.
The library was subsequently optimized for ARM processors and included in
Rockbox.
Foobar2000 will play ALAC files as will
JRiver Media Center and BitPerfect.
Lossless music via ALAC was added to
Apple Music
Apple Music is an audio and video streaming service developed by Apple Inc. Users can select music to stream to their device on-demand, or listen to existing playlists. The service also includes the sister internet radio stations Apple Musi ...
in June 2021, at no additional cost for all subscribers. The maximum fidelity for lossless music on Apple Music is 24-bit at 192 kHz.
Usage
For various reasons, different companies don't generally support ALAC codec.
For example,
Samsung
Samsung Group (; stylised as SΛMSUNG) is a South Korean Multinational corporation, multinational manufacturing Conglomerate (company), conglomerate headquartered in the Samsung Town office complex in Seoul. The group consists of numerous a ...
, which is still unable to play ALAC with its default player , Samsung Music on its phones, Despite numerous updates, you need to use third-party apps such as
VLC, etc. for Playing ALAC.
However, on phones such as
Sony
is a Japanese multinational conglomerate (company), conglomerate headquartered at Sony City in Minato, Tokyo, Japan. The Sony Group encompasses various businesses, including Sony Corporation (electronics), Sony Semiconductor Solutions (i ...
, the
Sony Music Center app is able to play ALAC.
Also, various companies such as
Pioneer and
Sony
is a Japanese multinational conglomerate (company), conglomerate headquartered at Sony City in Minato, Tokyo, Japan. The Sony Group encompasses various businesses, including Sony Corporation (electronics), Sony Semiconductor Solutions (i ...
do not support ALAC codec in their
Vehicle audio systems, and only expensive and flagship players from these two companies are able to play ALAC. Although there is not a big difference in quality between ALAC and
FLAC , these companies still turn to
FLAC for playing Lossless Codecs.
See also
*
Audio Interchange File Format (AIFF)
*
Comparison of audio coding formats
*
Free Lossless Audio Codec (FLAC)
*
Monkey's Audio
*TTA
*
WavPack
*
Windows Media Audio 9 Lossless
References
External links
ALAC Projectat MacOSForge
ALACtechnical features at MacOSForge
ALACimporting at
Apple
An apple is a round, edible fruit produced by an apple tree (''Malus'' spp.). Fruit trees of the orchard or domestic apple (''Malus domestica''), the most widely grown in the genus, are agriculture, cultivated worldwide. The tree originated ...
ALAC compression rates for different types of musicarticle by Kirk McElhern
{{Apple
Free audio codecs
Lossless audio codecs
Formerly proprietary software
IPod
ITunes
Lossless
Open file formats
Software using the Apache license