Tramway SDK
audio.h
Go to the documentation of this file.
1// TRAMWAY DRIFT AND DUNGEON EXPLORATION SIMULATOR 2022
2// All rights reserved.
3
4#ifndef TRAM_SDK_AUDIO_AUDIO_H
5#define TRAM_SDK_AUDIO_AUDIO_H
6
7#include <framework/core.h>
8#include <framework/math.h>
9
10namespace tram::Audio {
11
13 union {
14 uint32_t al_source;
15 void* generic;
16 };
17};
18
20 union {
21 struct {
22 uint32_t* al_buffers;
24 };
25 void* generic;
26 };
27
28};
29
30class Sound;
31
32void Init();
33void Update();
34void Uninit();
35
36void SetVolume(float value);
37float GetVolume();
38
39void SetListenerPosition(vec3 position);
41
42}
43
44#endif // TRAM_SDK_AUDIO_AUDIO_H
Definition: sound.h:13
Definition: api.h:9
void SetVolume(float value)
Definition: audio.cpp:41
void Uninit()
Definition: audio.cpp:33
void Init()
Starts the Audio system.
Definition: audio.cpp:18
float GetVolume()
Definition: audio.cpp:46
void Update()
Updates the Audio system.
Definition: audio.cpp:28
void SetListenerOrientation(quat orientation)
See Audio::API::SetListenerOrientation().
Definition: audio.cpp:56
void SetListenerPosition(vec3 position)
See Audio::API::SetListenerPosition().
Definition: audio.cpp:51
orientation
Definition: gui.h:18
glm::vec3 vec3
Definition: math.h:12
glm::quat quat
Definition: math.h:13
Definition: audio.h:19
int32_t al_buffer_count
Definition: audio.h:23
uint32_t * al_buffers
Definition: audio.h:22
Definition: audio.h:12
uint32_t al_source
Definition: audio.h:14