Skip to content

Struct Engine::AudioSource

ClassList > Engine > AudioSource

A pure ECS data component for triggering audio playback, when data is modified the audio will read to use using the Audio system.

  • #include <AudioSource.hpp>

Public Attributes

Type Name
std::string assetId
bool isMusic = false
bool isPlaying = false
bool loop = false
bool shouldPlay = false
bool shouldStop = false
float volume = 1.0f

Public Attributes Documentation

variable assetId

std::string Engine::AudioSource::assetId;

variable isMusic

bool Engine::AudioSource::isMusic;

variable isPlaying

bool Engine::AudioSource::isPlaying;

variable loop

bool Engine::AudioSource::loop;

variable shouldPlay

bool Engine::AudioSource::shouldPlay;

variable shouldStop

bool Engine::AudioSource::shouldStop;

variable volume

float Engine::AudioSource::volume;


The documentation for this class was generated from the following file /home/runner/work/r-type/r-type/Engine/include/Components/AudioSource.hpp