mirror of
https://github.com/love2d/megasource.git
synced 2026-08-19 04:05:09 +02:00
update OpenAL-Soft to 1.24.3.
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
#include "alspan.h"
|
||||
#include "core/bufferline.h"
|
||||
#include "intrusive_ptr.h"
|
||||
#include "opthelpers.h"
|
||||
|
||||
struct BufferStorage;
|
||||
struct ContextBase;
|
||||
@@ -100,15 +101,6 @@ struct ChorusProps {
|
||||
float Delay;
|
||||
};
|
||||
|
||||
struct FlangerProps {
|
||||
ChorusWaveform Waveform;
|
||||
int Phase;
|
||||
float Rate;
|
||||
float Depth;
|
||||
float Feedback;
|
||||
float Delay;
|
||||
};
|
||||
|
||||
struct CompressorProps {
|
||||
bool OnOff;
|
||||
};
|
||||
@@ -170,11 +162,9 @@ struct VmorpherProps {
|
||||
VMorpherWaveform Waveform;
|
||||
};
|
||||
|
||||
struct DedicatedDialogProps {
|
||||
float Gain;
|
||||
};
|
||||
|
||||
struct DedicatedLfeProps {
|
||||
struct DedicatedProps {
|
||||
enum TargetType : bool { Dialog, Lfe };
|
||||
TargetType Target;
|
||||
float Gain;
|
||||
};
|
||||
|
||||
@@ -187,7 +177,6 @@ using EffectProps = std::variant<std::monostate,
|
||||
ReverbProps,
|
||||
AutowahProps,
|
||||
ChorusProps,
|
||||
FlangerProps,
|
||||
CompressorProps,
|
||||
DistortionProps,
|
||||
EchoProps,
|
||||
@@ -196,8 +185,7 @@ using EffectProps = std::variant<std::monostate,
|
||||
ModulatorProps,
|
||||
PshifterProps,
|
||||
VmorpherProps,
|
||||
DedicatedDialogProps,
|
||||
DedicatedLfeProps,
|
||||
DedicatedProps,
|
||||
ConvolutionProps>;
|
||||
|
||||
|
||||
@@ -206,7 +194,7 @@ struct EffectTarget {
|
||||
RealMixParams *RealOut;
|
||||
};
|
||||
|
||||
struct EffectState : public al::intrusive_ref<EffectState> {
|
||||
struct SIMDALIGN EffectState : public al::intrusive_ref<EffectState> {
|
||||
al::span<FloatBufferLine> mOutTarget;
|
||||
|
||||
|
||||
@@ -221,8 +209,14 @@ struct EffectState : public al::intrusive_ref<EffectState> {
|
||||
|
||||
|
||||
struct EffectStateFactory {
|
||||
EffectStateFactory() = default;
|
||||
EffectStateFactory(const EffectStateFactory&) = delete;
|
||||
EffectStateFactory(EffectStateFactory&&) = delete;
|
||||
virtual ~EffectStateFactory() = default;
|
||||
|
||||
void operator=(const EffectStateFactory&) = delete;
|
||||
void operator=(EffectStateFactory&&) = delete;
|
||||
|
||||
virtual al::intrusive_ptr<EffectState> create() = 0;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user