mirror of
https://github.com/love2d/megasource.git
synced 2026-08-19 12:14:41 +02:00
update OpenAL-Soft to 1.24.3.
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
#include <cstdint>
|
||||
#include <string_view>
|
||||
#include <utility>
|
||||
#include <variant>
|
||||
|
||||
#include "AL/al.h"
|
||||
#include "AL/alc.h"
|
||||
@@ -14,6 +15,7 @@
|
||||
#include "almalloc.h"
|
||||
#include "alnumeric.h"
|
||||
#include "core/effects/base.h"
|
||||
#include "effects/effects.h"
|
||||
|
||||
|
||||
enum {
|
||||
@@ -42,14 +44,20 @@ struct EffectList {
|
||||
ALuint type;
|
||||
ALenum val;
|
||||
};
|
||||
extern const std::array<EffectList,16> gEffectList;
|
||||
DECL_HIDDEN extern const std::array<EffectList,16> gEffectList;
|
||||
|
||||
using EffectHandlerVariant = std::variant<NullEffectHandler,ReverbEffectHandler,
|
||||
StdReverbEffectHandler,AutowahEffectHandler,ChorusEffectHandler,CompressorEffectHandler,
|
||||
DistortionEffectHandler,EchoEffectHandler,EqualizerEffectHandler,FlangerEffectHandler,
|
||||
FshifterEffectHandler,ModulatorEffectHandler,PshifterEffectHandler,VmorpherEffectHandler,
|
||||
DedicatedDialogEffectHandler,DedicatedLfeEffectHandler,ConvolutionEffectHandler>;
|
||||
|
||||
struct ALeffect {
|
||||
// Effect type (AL_EFFECT_NULL, ...)
|
||||
ALenum type{AL_EFFECT_NULL};
|
||||
|
||||
EffectProps Props{};
|
||||
EffectHandlerVariant PropsVariant;
|
||||
EffectProps Props;
|
||||
|
||||
/* Self ID */
|
||||
ALuint id{0u};
|
||||
|
||||
Reference in New Issue
Block a user