The Audio Manager in dill-pixel provides a robust system for handling audio playback in your game, including support for multiple channels, volume control, fading, and more.
Audio Channels
The Audio Manager comes with three default channels:
music - For background music
sfx - For sound effects
voiceover - For voice-over audio
Playing Audio
To play a sound, use the play method:
Loading Audio Assets
Audio assets can be loaded in several ways:
1. Through Asset Manifest
2. Manually Adding Audio
Volume Control
Fading Audio
The Audio Manager provides several methods for smooth audio transitions:
Global Audio Controls
Event Handling
The Audio Manager provides several signals you can listen to:
Custom Channels
You can create additional audio channels beyond the default ones: