Refactor Audio Backend to support single listener only

This commit is contained in:
Wojtek Figat
2024-05-04 21:47:47 +02:00
parent 388a0f4196
commit f604503566
11 changed files with 164 additions and 299 deletions

View File

@@ -5,16 +5,7 @@
#include "Engine/Core/Config.h"
// The maximum amount of listeners used at once
#define AUDIO_MAX_LISTENERS 8
#define AUDIO_MAX_LISTENERS 1
// The maximum amount of audio emitter buffers
#define AUDIO_MAX_SOURCE_BUFFERS (ASSET_FILE_DATA_CHUNKS)
// The type of the audio source IDs used to identify it (per listener)
#define AUDIO_SOURCE_ID_TYPE uint32
// The type of the audio buffer IDs used to identify it
#define AUDIO_BUFFER_ID_TYPE uint32
// The buffer ID that is invalid (unused)
#define AUDIO_BUFFER_ID_INVALID 0