Class Engine::AudioSystem¶
ClassList > Engine > AudioSystem
A pure ECS System that processesAudioSource data components and maintains audio streams.
#include <AudioSystem.hpp>
Inherits the following classes: Engine::System
Public Attributes inherited from Engine::System¶
See Engine::System
| Type | Name |
|---|---|
| std::set< Entity > | m_Entities |
Public Functions¶
| Type | Name |
|---|---|
| virtual void | OnSceneUnloaded (Registry & registry) override Stops every sound and music track when the scene changes. |
| virtual void | Update (Registry & registry, float dt) override |
Public Functions inherited from Engine::System¶
See Engine::System
| Type | Name |
|---|---|
| virtual void | OnSceneUnloaded (Registry & registry) Called right before the current scene's entities are destroyed. |
| virtual void | Render (Registry & registry) World pass: drawn inside the active camera. |
| virtual void | RenderScreen (Registry & registry) Screen pass: drawn after the world, in window pixels. |
| virtual void | Update (Registry & registry, float dt) |
| virtual | ~System () = default |
Public Functions Documentation¶
function OnSceneUnloaded¶
Stops every sound and music track when the scene changes.
Audio belongs to the scene that started it. The new scene starts its own music through its AudioSource components. Loaded audio assets stay in the AssetManager, so replaying them doesn't reload files.
Implements Engine::System::OnSceneUnloaded
function Update¶
Implements Engine::System::Update
The documentation for this class was generated from the following file /home/runner/work/r-type/r-type/Engine/include/Systems/AudioSystem.hpp