aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
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 /Alc/ALc.c
parentb9fd3f9eb4f1aac20ff47938539b7fbf76044152 (diff)
Implement the Compressor effect
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r--Alc/ALc.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index d753b324..d825bab4 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -526,9 +526,7 @@ static const ALCenums enumeration[] = {
#endif
DECL(AL_EFFECT_RING_MODULATOR),
DECL(AL_EFFECT_AUTOWAH),
-#if 0
DECL(AL_EFFECT_COMPRESSOR),
-#endif
DECL(AL_EFFECT_EQUALIZER),
DECL(AL_EFFECT_DEDICATED_LOW_FREQUENCY_EFFECT),
DECL(AL_EFFECT_DEDICATED_DIALOGUE),
@@ -571,12 +569,6 @@ static const ALCenums enumeration[] = {
DECL(AL_REVERB_ROOM_ROLLOFF_FACTOR),
DECL(AL_REVERB_DECAY_HFLIMIT),
- DECL(AL_ECHO_DELAY),
- DECL(AL_ECHO_LRDELAY),
- DECL(AL_ECHO_DAMPING),
- DECL(AL_ECHO_FEEDBACK),
- DECL(AL_ECHO_SPREAD),
-
DECL(AL_CHORUS_WAVEFORM),
DECL(AL_CHORUS_PHASE),
DECL(AL_CHORUS_RATE),
@@ -584,6 +576,18 @@ static const ALCenums enumeration[] = {
DECL(AL_CHORUS_FEEDBACK),
DECL(AL_CHORUS_DELAY),
+ DECL(AL_DISTORTION_EDGE),
+ DECL(AL_DISTORTION_GAIN),
+ DECL(AL_DISTORTION_LOWPASS_CUTOFF),
+ DECL(AL_DISTORTION_EQCENTER),
+ DECL(AL_DISTORTION_EQBANDWIDTH),
+
+ DECL(AL_ECHO_DELAY),
+ DECL(AL_ECHO_LRDELAY),
+ DECL(AL_ECHO_DAMPING),
+ DECL(AL_ECHO_FEEDBACK),
+ DECL(AL_ECHO_SPREAD),
+
DECL(AL_FLANGER_WAVEFORM),
DECL(AL_FLANGER_PHASE),
DECL(AL_FLANGER_RATE),
@@ -591,6 +595,12 @@ static const ALCenums enumeration[] = {
DECL(AL_FLANGER_FEEDBACK),
DECL(AL_FLANGER_DELAY),
+ DECL(AL_RING_MODULATOR_FREQUENCY),
+ DECL(AL_RING_MODULATOR_HIGHPASS_CUTOFF),
+ DECL(AL_RING_MODULATOR_WAVEFORM),
+
+ DECL(AL_COMPRESSOR_ONOFF),
+
DECL(AL_EQUALIZER_LOW_GAIN),
DECL(AL_EQUALIZER_LOW_CUTOFF),
DECL(AL_EQUALIZER_MID1_GAIN),
@@ -602,16 +612,6 @@ static const ALCenums enumeration[] = {
DECL(AL_EQUALIZER_HIGH_GAIN),
DECL(AL_EQUALIZER_HIGH_CUTOFF),
- DECL(AL_DISTORTION_EDGE),
- DECL(AL_DISTORTION_GAIN),
- DECL(AL_DISTORTION_LOWPASS_CUTOFF),
- DECL(AL_DISTORTION_EQCENTER),
- DECL(AL_DISTORTION_EQBANDWIDTH),
-
- DECL(AL_RING_MODULATOR_FREQUENCY),
- DECL(AL_RING_MODULATOR_HIGHPASS_CUTOFF),
- DECL(AL_RING_MODULATOR_WAVEFORM),
-
DECL(AL_DEDICATED_GAIN),
{ NULL, (ALCenum)0 }