Audio in bsb-native?


#1

Hi there, I’ve been making a game about a rolling egg, (https://github.com/danieljharvey/reason-egg) using Reprocessing for graphics, and have been starting to think about what options there are for adding sound.

Browser version should be fairly straight forward via WebAudio, so no concerns there, but native I’m less sure about. Thinking about perhaps starting with these OCaml bindings and seeing what I can get going: https://github.com/savonet/ocaml-ao (which are bindings to this fairly OK looking audio library: https://xiph.org/ao/)

Anybody had any experience trying this? Am I making a terrible mistake?


#2

Actually, scratch that, this seems to be a newer one (and it’s available via Opam) - https://github.com/savonet/ocaml-mm


#3

Heyyyy what kind of sound support around looking for? You can play sounds with reprocessing


#4

Ohhh??? Just looking to trigger some audio samples - nothing complicated. I foolishly assumed Reprocessing was just a graphics library - will investigate. Thanks!