Skip to content

longde123/haxe-openfl-opus

 
 

Repository files navigation

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

About

OPENFL haxe extensions for decoding opus audio files.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 93.5%
  • C++ 5.4%
  • Assembly 0.7%
  • Other 0.3%
  • Haxe 0.1%
  • Batchfile 0.0%