Audio system implementation using MiniAudio. Handles loading, playing, and managing audio resources in the engine. Implements the IAudioSystem interface.
More...
#include <MiniAudioSystem.hpp>
Audio system implementation using MiniAudio. Handles loading, playing, and managing audio resources in the engine. Implements the IAudioSystem interface.
◆ MiniAudioSystem()
| Engine::MiniAudioSystem::MiniAudioSystem |
( |
| ) |
|
|
default |
◆ ~MiniAudioSystem()
| Engine::MiniAudioSystem::~MiniAudioSystem |
( |
| ) |
|
|
overridedefault |
◆ Init()
| bool Engine::MiniAudioSystem::Init |
( |
| ) |
|
|
overridevirtual |
Initializes the MiniAudio engine.
- Returns
- True if initialization succeeded
Implements Engine::IAudioSystem.
◆ LoadSound()
Loads a sound file into the audio system.
- Parameters
-
| path | Path to the audio file |
| desc | Sound description (streaming, spatial, etc.) |
- Returns
- Handle referencing the loaded sound
Implements Engine::IAudioSystem.
◆ Play()
Plays a sound with the specified parameters.
- Parameters
-
| sound | Sound handle to play |
| params | Playback parameters (volume, pitch, loop, pan) |
- Returns
- Handle of the active sound instance (voice)
Implements Engine::IAudioSystem.
◆ SetMasterVolume()
| void Engine::MiniAudioSystem::SetMasterVolume |
( |
float | volume | ) |
|
|
overridevirtual |
Sets the global master volume for all sounds.
- Parameters
-
| volume | Volume value (0..1+) |
Implements Engine::IAudioSystem.
◆ Shutdown()
| void Engine::MiniAudioSystem::Shutdown |
( |
| ) |
|
|
overridevirtual |
◆ Stop()
Stops a currently playing sound instance.
- Parameters
-
| voice | Voice handle to stop |
Implements Engine::IAudioSystem.
◆ UnloadSound()
Unloads a previously loaded sound resource.
- Parameters
-
| sound | Handle of the sound to unload |
Implements Engine::IAudioSystem.
◆ Update()
| void Engine::MiniAudioSystem::Update |
( |
float | deltaTime | ) |
|
|
overridevirtual |
Updates the MiniAudio engine (streaming, spatialization, etc.).
- Parameters
-
| deltaTime | Time elapsed since last frame |
Implements Engine::IAudioSystem.
The documentation for this class was generated from the following file: