ArticleslgStudy

computer science

Apple Lossless Audio Codec

Apple Lossless Audio Codec is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Apple Lossless Audio Codec rather than just read about it. In short: 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 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.

Key takeaways

  • Apple Lossless Audio Codec belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Apple Lossless Audio Codec to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Apple Lossless Audio Codec from memory before moving on to harder problems.

Reference excerpt

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 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, ca. 2017, it has begun to use the abbreviated term ALAC when referring to the codec. ALAC data is frequently stored within an MP4 container with the filename extension .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, 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 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 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 since version 4.5 and above, and its replacement, the Music application. The codec is also used in the AirPort 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 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 version 2.0 on October 27, 2011. On May 17, 2021, Apple announced that they would begin offering lossless audio in Apple Music 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 app. This issue involved songs with the ALAC codec being synced internally to the phone by iTunes (known as Apple Music as of June 3, 2019), and when playing that song/album, the album cover 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 and MPlayer, 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 BlackBerry OS 10 in 2013 made it possible to play the ALAC Audio Codec. Earlier, BlackBerry OS 7 in 2011 had enabled the playback of FLAC on BlackBerry phones. As of 2015, Windows 10 includes support for ALAC encoding and decoding, thereby enabling other media players to use it, e.g. Windows Media Player when ripping CDs or the Spotify 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 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.

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 Project at MacOSForge ALAC technical features at MacOSForge ALAC importing at Apple ALAC compression rates for different types of music article by Kirk McElhern ALAC file format overview and conversion options – lists which formats ALAC files can be converted to and from.

Worked examples

Example 1 — a first encounter with Apple Lossless Audio Codec

Start with the simplest possible case. Write down what Apple Lossless Audio Codec claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Apple Lossless Audio Codec before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Apple Lossless Audio Codec ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Apple Lossless Audio Codec

In research
Apple Lossless Audio Codec appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Apple Lossless Audio Codec in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Apple Lossless Audio Codec is common in secondary-school and first-year university syllabi. It links to neighbouring topics Formerly proprietary software, Free audio codecs, IPod, so understanding it makes those chapters shorter.
In everyday life
Look for Apple Lossless Audio Codec outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Apple Lossless Audio Codec” →

How to study Apple Lossless Audio Codec in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Apple Lossless Audio Codec means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Apple Lossless Audio Codec out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Apple Lossless Audio Codec in simple terms?

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 for lossless data compression of digital music. After initially keeping it proprietary from its incepti…

Why does Apple Lossless Audio Codec matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Apple Lossless Audio Codec?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Apple Lossless Audio Codec.

Tags

  • Formerly proprietary software
  • Free audio codecs
  • IPod
  • ITunes
  • Lossless audio codecs
  • Open file formats
  • QuickTime
  • Software using the Apache license

Keep exploring