hxdr_libs

A Haxe/Lime library for @:native audio decoding using dr_libs.
https://github.com/MAJigsaw77/hxdr_libs

To install, run:

haxelib install hxdr_libs 1.0.0 

See using Haxelib in Haxelib documentation for more information.

README.md

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.

Contributors
MAJigsaw77
Version
1.0.0
Published
1 year ago
Dependencies
License
MIT

All libraries are free

Every month, more than a 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

⌂