An open API service indexing awesome lists of open source software.

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

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