https://github.com/braheezy/maxmod-zig
GBA audio library
https://github.com/braheezy/maxmod-zig
gba zig
Last synced: 10 months ago
JSON representation
GBA audio library
- Host: GitHub
- URL: https://github.com/braheezy/maxmod-zig
- Owner: braheezy
- Created: 2025-08-11T05:31:12.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-08-17T20:34:29.000Z (10 months ago)
- Last Synced: 2025-08-17T22:19:48.028Z (10 months ago)
- Topics: gba, zig
- Language: Zig
- Homepage:
- Size: 73.8 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# maxmod-zig
This is a WIP port of the MaxMod audio library to Zig for Game Boy Advance development.
## Usage
### Building
```bash
# 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
```
### In Your Project
```zig
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();
```
## Showcase
**SFX**
https://github.com/user-attachments/assets/ee1a2599-9459-4a85-8607-8c36f3911537
**MOD**
https://github.com/user-attachments/assets/5cf24596-9afc-4a35-a754-c9cdb83f7cb9