![]() |
Shkyera Engine
Easy to use, game engine for Python
|
Component that enables audio playback for an entity. More...
#include <AudioSourceComponent.hpp>
Public Attributes | |
HandleAndAsset< Audio > | audio {} |
Audio asset to play. | |
std::shared_ptr< Sound > | sound {} |
Sound instance for playback control. | |
bool | paused {false} |
bool | loop {false} |
bool | spatialize {false} |
float | volume {1.0} |
float | maxDistance {10} |
Additional Inherited Members | |
![]() | |
virtual | ~BaseComponent ()=default |
Virtual destructor for proper cleanup. | |
Component that enables audio playback for an entity.
HandleAndAsset<Audio> shkyera::AudioSourceComponent::audio {} |
Audio asset to play.
float shkyera::AudioSourceComponent::maxDistance {10} |
float shkyera::AudioSourceComponent::volume {1.0} |