aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include/alEffect.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2013-10-03 07:55:12 -0700
committerChris Robinson <[email protected]>2013-10-03 07:55:12 -0700
commit41175ec84c81a9b04e0f6501024935ae137ca0f3 (patch)
tree3d698c0b72890814353976dd8ce25faaefc626e7 /OpenAL32/Include/alEffect.h
parentb9fd3f9eb4f1aac20ff47938539b7fbf76044152 (diff)
Implement the Compressor effect
Diffstat (limited to 'OpenAL32/Include/alEffect.h')
-rw-r--r--OpenAL32/Include/alEffect.h66
1 files changed, 36 insertions, 30 deletions
diff --git a/OpenAL32/Include/alEffect.h b/OpenAL32/Include/alEffect.h
index 7269c13e..89fa5381 100644
--- a/OpenAL32/Include/alEffect.h
+++ b/OpenAL32/Include/alEffect.h
@@ -14,6 +14,7 @@ enum {
REVERB,
AUTOWAH,
CHORUS,
+ COMPRESSOR,
DISTORTION,
ECHO,
EQUALIZER,
@@ -52,6 +53,7 @@ extern const struct ALeffectVtable ALeaxreverb_vtable;
extern const struct ALeffectVtable ALreverb_vtable;
extern const struct ALeffectVtable ALautowah_vtable;
extern const struct ALeffectVtable ALchorus_vtable;
+extern const struct ALeffectVtable ALcompressor_vtable;
extern const struct ALeffectVtable ALdistortion_vtable;
extern const struct ALeffectVtable ALecho_vtable;
extern const struct ALeffectVtable ALequalizer_vtable;
@@ -99,42 +101,35 @@ typedef union ALeffectProps {
} Autowah;
struct {
- ALfloat Delay;
- ALfloat LRDelay;
-
- ALfloat Damping;
+ ALint Waveform;
+ ALint Phase;
+ ALfloat Rate;
+ ALfloat Depth;
ALfloat Feedback;
-
- ALfloat Spread;
- } Echo;
+ ALfloat Delay;
+ } Chorus;
struct {
- ALfloat Frequency;
- ALfloat HighPassCutoff;
- ALint Waveform;
- } Modulator;
+ ALboolean OnOff;
+ } Compressor;
struct {
+ ALfloat Edge;
ALfloat Gain;
- } Dedicated;
+ ALfloat LowpassCutoff;
+ ALfloat EQCenter;
+ ALfloat EQBandwidth;
+ } Distortion;
struct {
- ALint Waveform;
- ALint Phase;
- ALfloat Rate;
- ALfloat Depth;
- ALfloat Feedback;
ALfloat Delay;
- } Chorus;
+ ALfloat LRDelay;
- struct {
- ALint Waveform;
- ALint Phase;
- ALfloat Rate;
- ALfloat Depth;
+ ALfloat Damping;
ALfloat Feedback;
- ALfloat Delay;
- } Flanger;
+
+ ALfloat Spread;
+ } Echo;
struct {
ALfloat Delay;
@@ -151,12 +146,23 @@ typedef union ALeffectProps {
} Equalizer;
struct {
- ALfloat Edge;
+ ALint Waveform;
+ ALint Phase;
+ ALfloat Rate;
+ ALfloat Depth;
+ ALfloat Feedback;
+ ALfloat Delay;
+ } Flanger;
+
+ struct {
+ ALfloat Frequency;
+ ALfloat HighPassCutoff;
+ ALint Waveform;
+ } Modulator;
+
+ struct {
ALfloat Gain;
- ALfloat LowpassCutoff;
- ALfloat EQCenter;
- ALfloat EQBandwidth;
- } Distortion;
+ } Dedicated;
} ALeffectProps;
typedef struct ALeffect {