#include <audio.h>
◆ AudioComponent()
tram::AudioComponent::AudioComponent |
( |
| ) |
|
|
inline |
◆ ~AudioComponent()
tram::AudioComponent::~AudioComponent |
( |
| ) |
|
◆ EventHandler()
void tram::AudioComponent::EventHandler |
( |
Event & |
event | ) |
|
|
inlinevirtual |
◆ IsPlaying()
bool tram::AudioComponent::IsPlaying |
( |
| ) |
|
Checks if component is playing a sound.
- Returns
- True, if a sound is playing, false if it hasn't started or has stopped.
◆ Pause()
void tram::AudioComponent::Pause |
( |
| ) |
|
Pauses the sound.
Pauses the sound that the component is playing, or does nothing, if no sound is playing.
◆ Play()
void tram::AudioComponent::Play |
( |
| ) |
|
Plays the sound.
Plays the sound that the component has been set to play.
◆ SetLocation()
void tram::AudioComponent::SetLocation |
( |
vec3 |
location | ) |
|
Sets the location from which the sound will play.
◆ SetRepeating()
void tram::AudioComponent::SetRepeating |
( |
bool |
is_repeating | ) |
|
Sets whether the component will repeat its sound.
◆ SetSound()
void tram::AudioComponent::SetSound |
( |
name_t |
name | ) |
|
Sets the sound that the component will play.
◆ Start()
void tram::AudioComponent::Start |
( |
| ) |
|
|
virtual |
◆ Stop()
void tram::AudioComponent::Stop |
( |
| ) |
|
Stops the sound.
Stops the sound that the component is playing, or does nothing, if no sound is playing.
◆ location
vec3 tram::AudioComponent::location = {0.0f, 0.0f, 0.0f} |
|
protected |
◆ play_on_start
bool tram::AudioComponent::play_on_start = false |
|
protected |
◆ repeat
bool tram::AudioComponent::repeat = false |
|
protected |
◆ sound
◆ source
The documentation for this class was generated from the following files:
- C:/Users/Poga/Desktop/painis/tram-sdk/src/components/audio.h
- C:/Users/Poga/Desktop/painis/tram-sdk/src/components/audio.cpp