aboutsummaryrefslogtreecommitdiffstats
path: root/alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-03-28 14:34:51 -0700
committerChris Robinson <[email protected]>2020-03-28 18:15:04 -0700
commite78cb9b77f380af164b972388c8a3d110080cdac (patch)
tree626c6fe4565fb9f6ec410a5b34145de57a00ea2f /alc
parent3fce1c4217f28d6fa472d252e5abe5169e7285fb (diff)
Avoid using more unnecessary type aliases
Diffstat (limited to 'alc')
-rw-r--r--alc/effects/base.h152
1 files changed, 76 insertions, 76 deletions
diff --git a/alc/effects/base.h b/alc/effects/base.h
index 6889308d..e8134290 100644
--- a/alc/effects/base.h
+++ b/alc/effects/base.h
@@ -15,47 +15,47 @@ struct ALeffectslot;
union EffectProps {
struct {
// Shared Reverb Properties
- ALfloat Density;
- ALfloat Diffusion;
- ALfloat Gain;
- ALfloat GainHF;
- ALfloat DecayTime;
- ALfloat DecayHFRatio;
- ALfloat ReflectionsGain;
- ALfloat ReflectionsDelay;
- ALfloat LateReverbGain;
- ALfloat LateReverbDelay;
- ALfloat AirAbsorptionGainHF;
- ALfloat RoomRolloffFactor;
+ float Density;
+ float Diffusion;
+ float Gain;
+ float GainHF;
+ float DecayTime;
+ float DecayHFRatio;
+ float ReflectionsGain;
+ float ReflectionsDelay;
+ float LateReverbGain;
+ float LateReverbDelay;
+ float AirAbsorptionGainHF;
+ float RoomRolloffFactor;
bool DecayHFLimit;
// Additional EAX Reverb Properties
- ALfloat GainLF;
- ALfloat DecayLFRatio;
- ALfloat ReflectionsPan[3];
- ALfloat LateReverbPan[3];
- ALfloat EchoTime;
- ALfloat EchoDepth;
- ALfloat ModulationTime;
- ALfloat ModulationDepth;
- ALfloat HFReference;
- ALfloat LFReference;
+ float GainLF;
+ float DecayLFRatio;
+ float ReflectionsPan[3];
+ float LateReverbPan[3];
+ float EchoTime;
+ float EchoDepth;
+ float ModulationTime;
+ float ModulationDepth;
+ float HFReference;
+ float LFReference;
} Reverb;
struct {
- ALfloat AttackTime;
- ALfloat ReleaseTime;
- ALfloat Resonance;
- ALfloat PeakGain;
+ float AttackTime;
+ float ReleaseTime;
+ float Resonance;
+ float PeakGain;
} Autowah;
struct {
- ALint Waveform;
- ALint Phase;
- ALfloat Rate;
- ALfloat Depth;
- ALfloat Feedback;
- ALfloat Delay;
+ int Waveform;
+ int Phase;
+ float Rate;
+ float Depth;
+ float Feedback;
+ float Delay;
} Chorus; /* Also Flanger */
struct {
@@ -63,78 +63,78 @@ union EffectProps {
} Compressor;
struct {
- ALfloat Edge;
- ALfloat Gain;
- ALfloat LowpassCutoff;
- ALfloat EQCenter;
- ALfloat EQBandwidth;
+ float Edge;
+ float Gain;
+ float LowpassCutoff;
+ float EQCenter;
+ float EQBandwidth;
} Distortion;
struct {
- ALfloat Delay;
- ALfloat LRDelay;
+ float Delay;
+ float LRDelay;
- ALfloat Damping;
- ALfloat Feedback;
+ float Damping;
+ float Feedback;
- ALfloat Spread;
+ float Spread;
} Echo;
struct {
- ALfloat LowCutoff;
- ALfloat LowGain;
- ALfloat Mid1Center;
- ALfloat Mid1Gain;
- ALfloat Mid1Width;
- ALfloat Mid2Center;
- ALfloat Mid2Gain;
- ALfloat Mid2Width;
- ALfloat HighCutoff;
- ALfloat HighGain;
+ float LowCutoff;
+ float LowGain;
+ float Mid1Center;
+ float Mid1Gain;
+ float Mid1Width;
+ float Mid2Center;
+ float Mid2Gain;
+ float Mid2Width;
+ float HighCutoff;
+ float HighGain;
} Equalizer;
struct {
- ALfloat Frequency;
- ALint LeftDirection;
- ALint RightDirection;
+ float Frequency;
+ int LeftDirection;
+ int RightDirection;
} Fshifter;
struct {
- ALfloat Frequency;
- ALfloat HighPassCutoff;
- ALint Waveform;
+ float Frequency;
+ float HighPassCutoff;
+ int Waveform;
} Modulator;
struct {
- ALint CoarseTune;
- ALint FineTune;
+ int CoarseTune;
+ int FineTune;
} Pshifter;
struct {
- ALfloat Rate;
- ALint PhonemeA;
- ALint PhonemeB;
- ALint PhonemeACoarseTuning;
- ALint PhonemeBCoarseTuning;
- ALint Waveform;
+ float Rate;
+ int PhonemeA;
+ int PhonemeB;
+ int PhonemeACoarseTuning;
+ int PhonemeBCoarseTuning;
+ int Waveform;
} Vmorpher;
struct {
- ALfloat Gain;
+ float Gain;
} Dedicated;
};
struct EffectVtable {
- void (*const setParami)(EffectProps *props, ALCcontext *context, ALenum param, ALint val);
- void (*const setParamiv)(EffectProps *props, ALCcontext *context, ALenum param, const ALint *vals);
- void (*const setParamf)(EffectProps *props, ALCcontext *context, ALenum param, ALfloat val);
- void (*const setParamfv)(EffectProps *props, ALCcontext *context, ALenum param, const ALfloat *vals);
-
- void (*const getParami)(const EffectProps *props, ALCcontext *context, ALenum param, ALint *val);
- void (*const getParamiv)(const EffectProps *props, ALCcontext *context, ALenum param, ALint *vals);
- void (*const getParamf)(const EffectProps *props, ALCcontext *context, ALenum param, ALfloat *val);
- void (*const getParamfv)(const EffectProps *props, ALCcontext *context, ALenum param, ALfloat *vals);
+ void (*const setParami)(EffectProps *props, ALCcontext *context, ALenum param, int val);
+ void (*const setParamiv)(EffectProps *props, ALCcontext *context, ALenum param, const int *vals);
+ void (*const setParamf)(EffectProps *props, ALCcontext *context, ALenum param, float val);
+ void (*const setParamfv)(EffectProps *props, ALCcontext *context, ALenum param, const float *vals);
+
+ void (*const getParami)(const EffectProps *props, ALCcontext *context, ALenum param, int *val);
+ void (*const getParamiv)(const EffectProps *props, ALCcontext *context, ALenum param, int *vals);
+ void (*const getParamf)(const EffectProps *props, ALCcontext *context, ALenum param, float *val);
+ void (*const getParamfv)(const EffectProps *props, ALCcontext *context, ALenum param, float *vals);
};
#define DEFINE_ALEFFECT_VTABLE(T) \