4#ifndef TRAM_SDK_AUDIO_SOUND_H
5#define TRAM_SDK_AUDIO_SOUND_H
int32_t sample_rate
Definition: sound.h:17
audiobuffer_t sound_buffer
Definition: sound.h:15
void Unload()
Removes the sound from memory.
Definition: sound.cpp:42
Sound(name_t name)
Definition: sound.h:30
void LoadFromMemory()
Definition: sound.h:22
int32_t channels
Definition: sound.h:16
int16_t * sound_data
Definition: sound.h:19
float GetLength()
Returns sound length in seconds.
Definition: sound.h:26
int32_t sound_length
Definition: sound.h:18
static Sound * Find(name_t name)
Finds a sound by a name.
Definition: sound.cpp:50
void LoadFromDisk()
Loads the sound from the disk.
Definition: sound.cpp:23
Definition: resource.h:12
name_t name
Definition: resource.h:38