Tramway SDK
painis
tram-sdk
src
audio
spatial
spatial.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_SPATIAL_SPATIAL_H
5
#define TRAM_SDK_AUDIO_SPATIAL_SPATIAL_H
6
7
/*#include <audio/audio.h>
8
9
namespace tram::Audio::Spatial {
10
11
void Init();
12
void Update();
13
void Uninit();
14
15
void SetListenerPosition(const vec3& position);
16
void SetListenerOrientation(const quat& orientation);
17
18
audiobuffer_t* MakeAudioBuffer(const int16_t* audio_data, int32_t length, int32_t samples, int32_t channels, int32_t& buffer_count);
19
void RemoveAudioBuffer(audiobuffer_t* buffers, int32_t buffer_count);
20
21
audiosource_t MakeAudioSource();
22
23
void SetAudioSourcePitch (audiosource_t source, float pitch);
24
void SetAudioSourceGain (audiosource_t source, float gain);
25
void SetAudioSourcePosition (audiosource_t source, vec3 position);
26
void SetAudioSourceVelocity (audiosource_t source, vec3 velocity);
27
void SetAudioSourceRepeating (audiosource_t source, bool repeating);
28
29
void SetAudioSourceBuffer(audiosource_t source, const audiobuffer_t* buffers, int32_t buffer_count);
30
31
void PlayAudioSource (audiosource_t source);
32
void PauseAudioSource (audiosource_t source);
33
void StopAudioSource (audiosource_t source);
34
35
bool IsAudioSourcePlaying (audiosource_t source);
36
37
void RemoveAudioSource (audiosource_t source);
38
39
}*/
40
41
#endif
// TRAM_SDK_AUDIO_SPATIAL_SPATIAL_H
Generated by
1.9.2