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