Audio Manager
Estimated reading time: 2 minutesmaplebirch.audio imports, caches, and plays mod audio. Audio data is stored in IndexedDB, then decoded and played through the framework with playlist, volume, play mode, and progress support.
Supported formats: .mp3, .wav, .ogg, .m4a, .flac, .webm.
Importing From boot.json
Audio files must be listed in additionFile so ModLoader can provide them. Then declare the folders to import in the maplebirchAddon params.
Multiple folders:
Playback
Seeking:
Importing And Removing
Playlists
Play modes:
State And Progress
Common properties:
Binding A Progress Bar
Internal Structure
The public module entry remains src/modules/Audio.ts, registered as maplebirch.audio. Supporting classes live in src/modules/AudioAddon/:
