adireddy / haxe-howler

Externs of howler.js for Haxe
http://howlerjs.com
11 stars 7 forks source link

Haxelib Version Support these externs on Patreon

haxe howler logo

Externs of howler.js for Haxe - Modern Web Audio Javascript Library.

Installation

haxelib install howlerjs

Demo

Look at the samples folder for the source code of above example.

Usage

import howler.Howl;

class Main {

    public function new() {
        var options:HowlOptions = {};
        options.src = ["sound.mp3", "sound.ogg"];
        options.autoplay = false;
        options.loop = true;
        var snd:Howl = new Howl(options);
        snd.play();
    }

    static function main() {
        new Main();
    }
}

Licensing Information

MIT license

This content is released under the MIT License.

howler.js is written by James Simpson and licensed under the MIT License.