Struct Audio3D

Plays a sound at the position of its object.

struct Audio3D

Plays a sound at the position of its object.

Public Functions

void play(const Object &obj)

(Re-)starts the sound at the object’s position.

Changes to ‘conf’ only take effect on the next play.

void stop()
inline bool isPlaying()

Public Members

wav64_t *audio = {}
Audio::Conf3D conf = {}
Audio::Handle handle = {}
float volume = {1.0f}
uint8_t flags = {0}

Public Static Functions

static inline uint32_t getAllocSize(uint16_t *initData)
static void initDelete(Object &obj, Audio3D *data, uint16_t *initData)
static void update(Object &obj, Audio3D *data, float deltaTime)

Public Static Attributes

static uint32_t ID = 14
static uint8_t FLAG_LOOP = 1 << 0
static uint8_t FLAG_AUTO_PLAY = 1 << 1