openfl-opus

OPENFL haxe extensions for decoding opus audio files.
https://github.com/soywiz/haxe-openfl-opus

To install, run:

haxelib install openfl-opus 0.0.2 

See using Haxelib in Haxelib documentation for more information.

README.md

OPUS

Opus should improve the quality/bitrate of mp3, vorbis and speex codecs. It could be used to reduce the size of music and speech dialogs in mobiles games.

Information about opus:

Setup/Installing

You need HAXE and OPENFL. http://www.openfl.org/

haxelib install openfl-opus

Usage/API

The Opus API is pretty simple. It uses ByteArray and Sound objects for decoding.

opus.Opus.getVersion():String;
opus.Opus.decode(bytes:Bytes):Sound;

Simple example

trace('Opus version: ' + Opus.getVersion());
var opusBytes:ByteArray = Assets.getBytes("assets/sample.opus");
var sound:Sound = Opus.decode(opusBytes);
sound.play();
Contributors
soywiz
Version
0.0.2
Published
4 years ago
License
MIT

All libraries are free

Every month, more than thousand developers use haxelib to find, share, and reuse code — and assemble it in powerful new ways. Enjoy Haxe; It is great!

Explore Haxe

Haxe Manual

Haxe Code Cookbook

Haxe API documentation

You can try Haxe in the browser! try.haxe.org

Join us on Github!

Haxe is being developed on GitHub. Feel free to contribute or report issues to our projects.

Haxe on Github