aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include/alEffect.h
diff options
context:
space:
mode:
authorRaulshc <[email protected]>2018-03-18 17:47:17 +0100
committerGitHub <[email protected]>2018-03-18 17:47:17 +0100
commit6fd23f09842b81788298e1840b8626252fdf5e18 (patch)
tree1f777d222368b80c131e9992735ffa3811052b5e /OpenAL32/Include/alEffect.h
parent3fde27d89098f6f71f82c06f89a2acbaa5f20400 (diff)
EFX:Pitch Shifter implementation
Add pitch shifter effect using standard phase vocoder, based on work of Stephan Bernsee. Only mono signal processing by now.
Diffstat (limited to 'OpenAL32/Include/alEffect.h')
-rw-r--r--OpenAL32/Include/alEffect.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/OpenAL32/Include/alEffect.h b/OpenAL32/Include/alEffect.h
index 95fa035e..50b64ee1 100644
--- a/OpenAL32/Include/alEffect.h
+++ b/OpenAL32/Include/alEffect.h
@@ -19,6 +19,7 @@ enum {
EQUALIZER_EFFECT,
FLANGER_EFFECT,
MODULATOR_EFFECT,
+ PSHIFTER_EFFECT,
DEDICATED_EFFECT,
MAX_EFFECTS
@@ -32,7 +33,7 @@ struct EffectList {
int type;
ALenum val;
};
-#define EFFECTLIST_SIZE 11
+#define EFFECTLIST_SIZE 12
extern const struct EffectList EffectList[EFFECTLIST_SIZE];
@@ -66,6 +67,7 @@ extern const struct ALeffectVtable ALequalizer_vtable;
extern const struct ALeffectVtable ALflanger_vtable;
extern const struct ALeffectVtable ALmodulator_vtable;
extern const struct ALeffectVtable ALnull_vtable;
+extern const struct ALeffectVtable ALpshifter_vtable;
extern const struct ALeffectVtable ALdedicated_vtable;
@@ -150,6 +152,11 @@ typedef union ALeffectProps {
} Modulator;
struct {
+ ALint CoarseTune;
+ ALint FineTune;
+ } Pshifter;
+
+ struct {
ALfloat Gain;
} Dedicated;
} ALeffectProps;