hxdr_libs
A Haxe/Lime library for @:native audio decoding using dr_libs.
[!WARNING] Hashlink or Neko are not supported
Installation
You can install it through Haxelib.
haxelib install hxdr_libs
Or through Git, if you want the latest updates
haxelib git hxdr_libs https://github.com/MAJigsaw77/hxdr_libs.git
Basic Usage Example
Flac Decoding
import hxdr_libs.Flac;
import lime.media.AudioSource;
final again:AudioSource = new AudioSource(Flac.fromFile("assets/AGAIN.flac"));
again.play();
Mp3 Decoding
import hxdr_libs.Mp3;
import lime.media.AudioSource;
final complex:AudioSource = new AudioSource(Mp3.fromFile("assets/COMPLEX.mp3"));
complex.play();
Wav Decoding
import hxdr_libs.Wav;
import lime.media.AudioSource;
final nextToYou:AudioSource = new AudioSource(Wav.fromFile("assets/NEXT TO YOU.wav"));
nextToYou.play();
Licensing
hxdr_libs is made available under the MIT License. See LICENSE for details.
dr_libs is made available under either public domain (Unlicense) or MIT No Attribution. Check dr_libs's LICENSE for more information.