#include <sound.h>
◆ Sound()
tram::Audio::Sound::Sound |
( |
name_t |
name | ) |
|
|
inlineprotected |
◆ Find()
Finds a sound by a name.
If a sound by that name doesn't exist, then it will be created.
- Returns
- Always returns a pointer to a Sound.
◆ GetLength()
float tram::Audio::Sound::GetLength |
( |
| ) |
|
|
inline |
Returns sound length in seconds.
◆ LoadFromDisk()
void tram::Audio::Sound::LoadFromDisk |
( |
| ) |
|
|
virtual |
◆ LoadFromMemory()
void tram::Audio::Sound::LoadFromMemory |
( |
| ) |
|
|
inlinevirtual |
◆ Unload()
void tram::Sound::Unload |
( |
| ) |
|
|
virtual |
◆ tram::Pool
◆ channels
int32_t tram::Audio::Sound::channels = 0 |
◆ sample_rate
int32_t tram::Audio::Sound::sample_rate = 0 |
◆ sound_buffer
◆ sound_data
int16_t* tram::Audio::Sound::sound_data = nullptr |
◆ sound_length
int32_t tram::Audio::Sound::sound_length = 0 |
The documentation for this class was generated from the following files:
- C:/Users/Poga/Desktop/painis/tram-sdk/src/audio/sound.h
- C:/Users/Poga/Desktop/painis/tram-sdk/src/audio/sound.cpp
- C:/Users/Poga/Desktop/painis/tram-sdk/src/entities/sound.cpp