R-Type 0.1
Loading...
Searching...
No Matches
rtk::systems::AudioSystem< AudioType > Class Template Referencefinal

Ticks the audio backend once per frame. More...

#include <systems/AudioSystem.hpp>

Inheritance diagram for rtk::systems::AudioSystem< AudioType >:
[legend]

Public Member Functions

 AudioSystem (AudioType &audioManager)
 Creates the system.
 
void onStart (rtk::ecs::Registry &) override
 Logs that the system is loaded.
 
void update (rtk::ecs::Registry &reg, float) override
 Calls update() on the backend.
 
void onStop (rtk::ecs::Registry &) override
 Does nothing.
 

Detailed Description

template<ecs::concepts::IsAudioManager AudioType>
class rtk::systems::AudioSystem< AudioType >

Ticks the audio backend once per frame.

Template Parameters
AudioTypeBackend satisfying IsAudioManager.

Constructor & Destructor Documentation

◆ AudioSystem()

template<ecs::concepts::IsAudioManager AudioType>
rtk::systems::AudioSystem< AudioType >::AudioSystem ( AudioType & audioManager)
inline

Creates the system.

Parameters
audioManagerBackend to tick.