What is Finewave?
Finewave is Atlas Engine’s built-in audio subsystem that provides comprehensive audio playback, 3D spatial audio, and real-time audio effects. It handles everything from basic sound playback to advanced positional audio with Doppler effects.Key Features
- 3D Spatial Audio: Position-based audio with automatic attenuation and panning
- Audio Effects: Reverb, echo, and distortion effects for enhanced realism
- Component-Based: Attach audio to any game object using the AudioPlayer component
- Resource Management: Seamless integration with Atlas workspace resource system
- Real-Time Updates: Automatic listener positioning based on camera movement
Core Components
Finewave consists of three main classes:AudioEngine
The central audio engine manages global audio settings and the listener position.AudioData
Represents loaded audio data that can be shared across multiple audio sources.AudioSource
An audio source that plays audio data with configurable properties.AudioPlayer Component
Atlas provides theAudioPlayer component for easy integration with game objects:
Quick Example
Here’s a complete example of setting up audio in your scene:Audio Engine Initialization
TheAudioEngine is automatically initialized when you create a Window. It manages:
- Audio device selection and initialization
- Global audio context
- Listener position and orientation
- Master volume control
Next Steps
Audio Sources
Learn how to load and play audio files
Spatial Audio
Implement 3D positional audio in your scenes
Audio Effects
Add reverb, echo, and distortion effects
API Reference
Explore the complete Finewave API