openfl-opus 0.0.2

OPENFL haxe extensions for decoding opus audio files.

Released 2013-09-03.

To install, run:

haxelib install openfl-opus 0.0.2

See using Haxelib in Haxelib documentation for more information.

Maintainersoywiz
Websitehttps://github.com/soywiz/haxe-openfl-opus
Current version0.0.2
StatisticsInstalled 89 times
LicenseMIT
Tags audio, cpp, formats, music, neko, openfl, opus, speex, voice

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();