Skip to content

Latest commit

 

History

History
39 lines (25 loc) · 713 Bytes

readme.md

File metadata and controls

39 lines (25 loc) · 713 Bytes

Jai bindings for miniaudio

miniaudio's version : v0.11.18
Jai's version : 0.1.090

#import "miniaudio-jai";
#import "Basic";

main :: () {
    result : ma_result;
    engine : ma_engine;

     result = ma_engine_init(null, *engine);
     assert(result == ma_result.SUCCESS);

     result = ma_engine_play_sound(*engine, "./examples/sample.mp3", null);
     assert(result == ma_result.SUCCESS);

     print("All good! Playing the song!\n");

     while true {}
}

Examples

If you want to try the example, just run:

  • jai examples/example.jai && ./examples/example

Current operating system supported

  • MacOS
  • Windows
  • Linux

Note: PR is very welcome for missing OS.