ALAC Background
ALAC Icon

This is a basic decoder for Apple Lossless Audio Codec files.

15
Downloads
-
0 Ratings
All Versions
15
Total Downloads
0
Downloads Last Week
Current Version
15
Total Downloads
0
Downloads Last Week
Downloads Last 10 Weeks
All Versions
-
0 Ratings
5
4
3
2
1
Current Version
-
0 Ratings
5
4
3
2
1

ALACOverview

Located here is a basic decoder for Apple Lossless Audio Codec files (ALAC). ALAC is a proprietary lossless audio compression scheme. Apple never released any documents on the format.
What I provide here is a C implementation of a decoder, written from reverse engineering the file format. It turns out that most of the algorithms in the codec are fairly well known. ALAC uses an adaptive FIR prediction algorithm and stores the error values using a modified rice or golumb algorithm. Further details are in alac.c.

Although an encoder is not provided, by using the decoder as a sort of specification it should be fairly trivial to write an encoder. By exploiting other lossless audio encoders, such as FLAC, the task will be much easier. Although one wouldn't be able to copy the compression algorithms verbatim, as adaptive compression is used in ALAC and not in FLAC. There are, however, a bunch of academic Papers on the issue.

The program located here will not be able to handle all ALAC files, it can only handle mono or stereo files. ALAC allows up to 8 channels. It should be trivial to finish the implementation once I find files that I can test it with. The ALAC decoder supports both 16 and 24 bit sample sizes.

The decoder is fairly self explanatory, it can read an ALAC Stream from either a file or from stdin, and write it as raw PCM data or as a WAV file to either stdout or a file. In theory one should be able to stream data to the decoder.

New

Fixed some bugs.

ALACTech Specs

Version
0.2.0
Date
03.02.10
License
Free
Language
English
File Size
18KB
Developer
Category
SubCategory
Operating Systems
Mac OS X
System Requirements
No additional system requirements.

SelectedFor You

Adobe Audition CC Icon
Adobe Systems Incorporated
Professional post-production audio editor.
Mixxx Icon
Adam Davison
Gives you everything you need to perform live mixes
SuperCollider Icon
a3ulafia
An environment and programming language for real time audio synthesis and more.
Xsong Icon
XecretCode
Beautifully designed songwriting organizer and visual edito
PreMaster CD Icon
Sonic Studio, LLC.
Host-based premastering application.
Apple Logic Studio Icon
Apple Inc.
Logic Studio is a complete set of professional applications that lets you write
Serato Scratch LIVE Icon
Serato Audio Research
It is the only digital DJ system that stays true to the art of DJing.