IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
Anyone want to do an Apple Lossless component?, Free ALAC decoder available
Aero
post Mar 5 2005, 23:44
Post #1





Group: Members
Posts: 836
Joined: 20-December 02
Member No.: 4166



I saw this free ALAC decoder mentioned on Slashdot:

QUOTE
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. Likewise the decoder only supports 16bit sample sizes. Again, it should be trivial to fix.

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.


Source code is available here
Go to the top of the page
 
+Quote Post
ffooky
post Mar 6 2005, 01:29
Post #2





Group: Members
Posts: 259
Joined: 8-July 04
Member No.: 15184



Useful and nice enough but an encoder that could be adopted as an shntool format module would be a thing of beauty indeed.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 21st November 2009 - 22:52