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 {}
}
If you want to try the example, just run:
jai examples/example.jai && ./examples/example
- MacOS
- Windows
- Linux
Note: PR is very welcome for missing OS.