Shkyera Engine
Easy to use, game engine for Python
Loading...
Searching...
No Matches
shkyera::AudioSourceComponent Class Reference

Component that enables audio playback for an entity. More...

#include <AudioSourceComponent.hpp>

Inheritance diagram for shkyera::AudioSourceComponent:
[legend]

Public Attributes

HandleAndAsset< Audioaudio {}
 Audio asset to play.
 
std::shared_ptr< Soundsound {}
 Sound instance for playback control.
 
bool paused {false}
 
bool loop {false}
 
bool spatialize {false}
 
float volume {1.0}
 
float maxDistance {10}
 

Additional Inherited Members

- Public Member Functions inherited from shkyera::BaseComponent< AudioSourceComponent >
virtual ~BaseComponent ()=default
 Virtual destructor for proper cleanup.
 

Detailed Description

Component that enables audio playback for an entity.

Member Data Documentation

◆ audio

HandleAndAsset<Audio> shkyera::AudioSourceComponent::audio {}

Audio asset to play.

◆ loop

bool shkyera::AudioSourceComponent::loop {false}

◆ maxDistance

float shkyera::AudioSourceComponent::maxDistance {10}

◆ paused

bool shkyera::AudioSourceComponent::paused {false}

◆ sound

std::shared_ptr<Sound> shkyera::AudioSourceComponent::sound {}

Sound instance for playback control.

◆ spatialize

bool shkyera::AudioSourceComponent::spatialize {false}

◆ volume

float shkyera::AudioSourceComponent::volume {1.0}

The documentation for this class was generated from the following file: