Go to file
Michael Campagnaro e793e84e11 Regen to remove size_t 2023-11-21 15:07:34 -05:00
source@3898fff8ed Add Windows bindings 2023-09-18 20:54:01 -04:00
windows Regen to remove size_t 2023-11-21 15:07:34 -05:00
.editorconfig Add Windows bindings 2023-09-18 20:54:01 -04:00
.gitignore Add Windows bindings 2023-09-18 20:54:01 -04:00
.gitmodules Add Windows bindings 2023-09-18 20:54:01 -04:00
LICENSE Add Windows bindings 2023-09-18 20:54:01 -04:00
README.md Add Windows bindings 2023-09-18 20:54:01 -04:00
generate.jai Add a note on static linking 2023-11-21 14:35:41 -05:00
module.jai Regen to remove size_t 2023-11-21 15:07:34 -05:00
windows.jai Regen to remove size_t 2023-11-21 15:07:34 -05:00

README.md

miniaudio.jai

Jai bindings for miniaudio

Initial setup

If you want to build the lib then you'll need the source code. You can do this with: git submodule update --init --recursive. In the future if you need to pull in the source submodule again (e.g. the folder got deleted), then run: git submodule update --recursive

Usage

Simply import the module. If you're using a static library version then you're set. If you generated a DLL (and new bindings to load it) then you need to copy the DLL from the windows/ folder to the working directory of your exe.

TODO

  • Manually add these static inline implementations ./source/extras/miniaudio_split/miniaudio.h:2407:28: Stripping function thats missing from foreign libs: ma_get_bytes_per_frame ./source/extras/miniaudio_split/miniaudio.h:6005:25: Stripping function thats missing from foreign libs: ma_offset_pcm_frames_ptr_f32 ./source/extras/miniaudio_split/miniaudio.h:6006:31: Stripping function thats missing from foreign libs: ma_offset_pcm_frames_const_ptr_f32
  • Replace malloc, realloc, free with Jai procs.
  • Add support for other platforms (currently only supporting Windows).
  • Review bindings to see if any declarations are missing.