Hashlink no sound


I am trying to play an ogg. I know mp3s are not optimal to looping.

This code doesn’t play anything in hl:
var res = hxd.Res.sound;
var sound = res.play(true);

I am using…
Haxe 4.3.4
HL HL/JIT 1.14.0

JS version plays it fine. I have been looking for related issues and I have tried the solutions but no luck…


Did you put -lib hlopenal in your hashlink .hxml file?

This was the problem, thank you.