OPENFL haxe extensions for decoding opus audio files.
C C++ Assembly Perl Haxe Batchfile
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
ndll
opus
project
tools
.gitignore
README.md
build_android.bat
build_blackberry.bat
build_ios.sh
build_linux.sh
build_mac.sh
build_webos.bat
build_windows.bat
deploy.bat
haxelib.json
haxelib.xml
set_dev_directory.bat

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