audio/alac 0.2.0 NetBSD
Basic decoder for Apple Lossless Audio Codec files (ALAC)
- System
- NetBSD
- Repository
- pkgsrc
- Maintainer
- [email protected]
- License
- mit
- Categories
- audio
- Package size
- 13.5 KiB, 26.8 KiB installed
Description
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.
In the other systems
| System | Port | Version |
|---|---|---|
| NetBSD | audio/alac | 0.2.0 |
| FreeBSD | audio/alac | 0.0.7,1 |
| DragonFly | audio/alac | 0.0.7,1 |
| HardenedBSD | audio/alac | 0.0.7,1 |
| GhostBSD | audio/alac | 0.0.7,1 |
Install
Binary package:
pkgin install alac
From pkgsrc:
cd /usr/pkgsrc/audio/alac && make install clean
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | Version |
|---|---|
| NetBSD 10.1 x86_64 | 0.2.0 |
| NetBSD 10.1 aarch64 | 0.2.0 |
| SmartOS / illumos x86_64 | 0.2.0 |
| macOS 15 arm64 | 0.2.0 |
Dependencies
No port depends on this one.