Saga
Saga Game Engine
Loading...
Searching...
No Matches
audioSystem.h
Go to the documentation of this file.
1#pragma once
2#include <memory>
3
4namespace Saga {
5class GameWorld;
6}
7
8namespace Saga::Systems {
14 void audioEmitterAwake(std::shared_ptr<GameWorld> world);
15
25 void audioEmitterUpdate(std::shared_ptr<GameWorld> world, float deltaTime, float time);
26
34 void audioEmitterUnload(std::shared_ptr<GameWorld> world);
35
42 void audioCameraPositioning3D(std::shared_ptr<GameWorld> world);
43
50 void registerAudioSystem(std::shared_ptr<GameWorld> world);
51
59 void setupAudioSystem(std::shared_ptr<GameWorld> world);
60};
void audioEmitterAwake(std::shared_ptr< GameWorld > world)
Preprocess all audio event emitters. This loads their events's sample data if requested,...
Definition: audioSystem.cpp:9
void audioEmitterUpdate(std::shared_ptr< GameWorld > world, float deltaTime, float time)
Perform updates to audio emitters in the scene. Specifically, if the emitter is playing a sound and i...
Definition: audioSystem.cpp:20
void setupAudioSystem(std::shared_ptr< GameWorld > world)
Setup the audio set of systems, adding the appropriate systems to their own Stages.
Definition: audioSystem.cpp:82
void audioEmitterUnload(std::shared_ptr< GameWorld > world)
Perform cleanup on the event emitters. Specifically, this stops and release event instances,...
Definition: audioSystem.cpp:41
void audioCameraPositioning3D(std::shared_ptr< GameWorld > world)
Adjust the audio listener. By default, this sets it to the first camera in the scene.
Definition: audioSystem.cpp:54
void registerAudioSystem(std::shared_ptr< GameWorld > world)
Register the audio system.
Definition: audioSystem.cpp:78
Definition: audioSystem.cpp:8
Definition: app.cpp:8