bradisbell / ogg.js

libogg, libvorbis, and libopus compiled to JavaScript with Emscripten for Aurora.js

Home Page:http://devongovett.github.io/ogg.js/test.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ogg.js

libogg, libvorbis, and libopus compiled to JavaScript with Emscripten for Aurora.js.

Building

  1. Install Emscripten.
  2. Clone git submodules
  3. Run compileOgg.sh 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.
  4. Install importer with npm install importer -g.
  5. Run importer src/ogg.js build/ogg.js to generate a JavaScript file with libogg and the Aurora.js wrapper, or to run a development server use importer src/ogg.js -p 5000 for example.

The steps to build libvorbis and libopus are the same, just using their respective compilation scripts and modified importer filenames.

License

libogg, libvorbis, and libopus are available under their respective licenses, and the JavaScript and C wrapper code in this repo for Aurora.js is licensed under MIT.

About

libogg, libvorbis, and libopus compiled to JavaScript with Emscripten for Aurora.js

http://devongovett.github.io/ogg.js/test.html