audio/alac - The NetBSD Packages Collection

Basic decoder for Apple Lossless Audio Codec files (ALAC)

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.

Build dependencies

pkgtools/mktools pkgtools/cwrappers

Runtime dependencies

(none)

Binary packages

OSArchitectureVersion
NetBSD 10.0aarch64alac-0.2.0.tgz
NetBSD 10.0aarch64alac-0.2.0.tgz
NetBSD 10.0aarch64ebalac-0.2.0.tgz
NetBSD 10.0aarch64ebalac-0.2.0.tgz
NetBSD 10.0alphaalac-0.2.0.tgz
NetBSD 10.0alphaalac-0.2.0.tgz
NetBSD 10.0earmv6hfalac-0.2.0.tgz
NetBSD 10.0earmv6hfalac-0.2.0.tgz
NetBSD 10.0earmv6hfalac-0.2.0.tgz
NetBSD 10.0earmv7hfalac-0.2.0.tgz
NetBSD 10.0earmv7hfalac-0.2.0.tgz
NetBSD 10.0earmv7hfalac-0.2.0.tgz
NetBSD 10.0i386alac-0.2.0.tgz
NetBSD 10.0i386alac-0.2.0.tgz
NetBSD 10.0powerpcalac-0.2.0.tgz
NetBSD 10.0powerpcalac-0.2.0.tgz
NetBSD 10.0powerpcalac-0.2.0.tgz
NetBSD 10.0sparc64alac-0.2.0.tgz
NetBSD 10.0sparc64alac-0.2.0.tgz
NetBSD 10.0sparcalac-0.2.0.tgz
NetBSD 10.0sparcalac-0.2.0.tgz
NetBSD 10.0vaxalac-0.2.0.tgz
NetBSD 10.0vaxalac-0.2.0.tgz
NetBSD 10.0vaxalac-0.2.0.tgz
NetBSD 10.0x86_64alac-0.2.0.tgz
NetBSD 10.0x86_64alac-0.2.0.tgz
NetBSD 9.0aarch64alac-0.2.0.tgz
NetBSD 9.0aarch64alac-0.2.0.tgz
NetBSD 9.0alphaalac-0.2.0.tgz
NetBSD 9.0alphaalac-0.2.0.tgz
NetBSD 9.0earmv4alac-0.2.0.tgz
NetBSD 9.0earmv6hfalac-0.2.0.tgz
NetBSD 9.0earmv6hfalac-0.2.0.tgz
NetBSD 9.0earmv6hfalac-0.2.0.tgz
NetBSD 9.0earmv7hfalac-0.2.0.tgz
NetBSD 9.0earmv7hfalac-0.2.0.tgz
NetBSD 9.0earmv7hfalac-0.2.0.tgz
NetBSD 9.0i386alac-0.2.0.tgz
NetBSD 9.0i386alac-0.2.0.tgz
NetBSD 9.0powerpcalac-0.2.0.tgz
NetBSD 9.0powerpcalac-0.2.0.tgz
NetBSD 9.0powerpcalac-0.2.0.tgz
NetBSD 9.0sparc64alac-0.2.0.tgz
NetBSD 9.0x86_64alac-0.2.0.tgz
NetBSD 9.0x86_64alac-0.2.0.tgz
NetBSD 9.3x86_64alac-0.2.0.tgz

Binary packages can be installed with the high-level tool pkgin (which can be installed with pkg_add) or pkg_add(1) (installed by default). The NetBSD packages collection is also designed to permit easy installation from source.

Available build options

(none)

Known vulnerabilities

The pkg_admin audit command locates any installed package which has been mentioned in security advisories as having vulnerabilities.

Please note the vulnerabilities database might not be fully accurate, and not every bug is exploitable with every configuration.


Problem reports, updates or suggestions for this package should be reported with send-pr.