braheezy/maxmod-zig
GBA audio library
13fd985c13881a46d0b2fd8c54c9ff8a45eef798
This is a WIP port of the MaxMod audio library to Zig for Game Boy Advance development.
# Build the library
zig build
# Build and run SFX example with custom WAV
zig build sfx -- your_audio.wav
# Build and run a MOD example with a .mod file
zig build mod -- your_mod.mod
const maxmod = @import("maxmod_gba");
// Initialize audio system
maxmod.init();
// Play a sound effect
maxmod.playSound(sound_id);
// Play music
maxmod.startMusic(music_id);
// Update audio (call in main loop)
maxmod.update();
SFX
https://github.com/user-attachments/assets/ee1a2599-9459-4a85-8607-8c36f3911537
MOD
https://github.com/user-attachments/assets/5cf24596-9afc-4a35-a754-c9cdb83f7cb9