Audio
Castrum lets you add music and sound effects to your game. You can stream audio, play one-shot effects, mix sounds, and position them in a 2D world.
Before you start
The Ebitengine runner plays WAV, MP3, and Ogg Vorbis files. By default, audio paths are relative to the directory you run the game from. If you're bringing your own WAV file, use 8-bit or 16-bit little-endian PCM with one or two channels.
Audio Tutorial
Start with Getting started with audio to add music and a sound effect to a game.
How-to-guides
Explanations
Reference
Browse the audio package on pkg.go.dev for the published API. For the API in your checkout, run go doc github.com/Leonard-Atorough/castrum/audio.