JSPM

alac

0.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2896
  • Score
    100M100P100Q114657F
  • License Apache-2.0

An Apple Lossless decoder for Aurora.js

Package Exports

  • alac

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (alac) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

alac.js: An Apple Lossless decoder in the browser

The Apple Lossless Audio Codec (ALAC) is an audio codec developed by Apple and included in the original iPod. ALAC is a data compression method which reduces the size of audio files with no loss of information. A decoded ALAC stream is bit-for-bit identical to the original uncompressed audio file.

The original encoder and decoder were open sourced by Apple, and this is a port of the decoder to CoffeeScript so that ALAC files can be played in the browser.

Demo

You can check out a demo alongside our other decoders flac.js, MP3.js, and AAC.js. Currently, alac.js works properly in the latest versions of Firefox, Chrome, and Safari.

Authors

alac.js was written by @jensnockert and @devongovett of Audiocogs.

Building

We use browserify to build alac.js. You can download a prebuilt version from the Github releases page. To build alac.js for the browser yourself, use the following commands:

npm install
make browser

This will place a built alac.js file, as well as a source map in the build/ directory.

alac.js depends on Aurora.js, our audio codec framework. For detailed information on how to use Aurora.js, check out the documentation.

License

alac.js is released under the same terms as the original ALAC decoder from Apple, which is the Apache 2 license.