mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 05:21:49 +00:00
add effects extension support
This commit is contained in:
parent
3637855581
commit
923c694ab4
2 changed files with 134 additions and 7 deletions
|
|
@ -3,6 +3,7 @@
|
|||
#include <glm/glm.hpp>
|
||||
#include <queue>
|
||||
#include <string>
|
||||
#include <array>
|
||||
#include <unordered_map>
|
||||
#include <vector>
|
||||
|
||||
|
|
@ -12,9 +13,11 @@
|
|||
#ifdef __APPLE__
|
||||
#include <OpenAL/al.h>
|
||||
#include <OpenAL/alc.h>
|
||||
#include <OpenAL/alext.h>
|
||||
#else
|
||||
#include <AL/al.h>
|
||||
#include <AL/alc.h>
|
||||
#include <AL/alext.h>
|
||||
#endif
|
||||
|
||||
namespace audio {
|
||||
|
|
@ -176,10 +179,17 @@ namespace audio {
|
|||
|
||||
std::vector<uint> allbuffers;
|
||||
std::vector<uint> freebuffers;
|
||||
|
||||
uint maxSources = 256;
|
||||
|
||||
void initEffects();
|
||||
public:
|
||||
ALAudio(ALCdevice* device, ALCcontext* context);
|
||||
std::array<uint, 2> effectSlots;
|
||||
std::array<uint, 2> effects;
|
||||
std::array<uint, 1> filters;
|
||||
|
||||
bool useEffects;
|
||||
|
||||
ALAudio(ALCdevice* device, ALCcontext* context, bool effects);
|
||||
~ALAudio();
|
||||
|
||||
uint getFreeSource();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue