libogg, libvorbis, and libopus compiled to JavaScript with Emscripten for Aurora.js.
- Install Emscripten.
- Clone git submodules
- Run
compileOgg.shto 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. - Install importer with
npm install importer -g. - Run
importer src/ogg.js build/ogg.jsto generate a JavaScript file with libogg and the Aurora.js wrapper, or to run a development server useimporter src/ogg.js -p 5000for example.
The steps to build libvorbis and libopus are the same, just using their respective compilation scripts and modified importer filenames.
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.