audiocogs / ogg.js

An Ogg demuxer for aurora.js ported using emscripten

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ogg.js

An Ogg demuxer for Aurora.js, compiled with Emscripten.

Usage

ogg.js isn't very useful without some plugins. Some examples of audio formats that can be stored in an Ogg container include:

If you're using ogg.js and its associated codecs in a browser, you should either build your application with Browserify or include the prebuilt versions of aurora.js, ogg.js and the codecs you want to support in your HTML page as <script> tags.

If you're using Node, you can simply require av, ogg.js, and the codecs you want to use.

Building from source

  1. Install Emscripten.
  2. Clone git submodules
  3. Run npm install to install dependencies
  4. Run make libogg to configure and build libogg and the C wrapper. Run this again whenever you make changes to the C wrapper or a new version of libogg is released.
  5. Run make browser to generate a browser version of ogg.js, or use browserify to build your application.

License

libogg is available under its existing license, and the JavaScript and C wrapper code in this repo for Aurora.js is licensed under MIT.

About

An Ogg demuxer for aurora.js ported using emscripten


Languages

Language:JavaScript 52.1%Language:C 29.6%Language:Shell 18.3%