From b273d616ad5a9979cbf0b69318aded6ec821450e Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 8 Apr 2010 08:54:28 -0700 Subject: Implement a skeleton Ring Modulator effect --- OpenAL32/Include/alAuxEffectSlot.h | 1 + OpenAL32/Include/alEffect.h | 7 +++++++ 2 files changed, 8 insertions(+) (limited to 'OpenAL32/Include') diff --git a/OpenAL32/Include/alAuxEffectSlot.h b/OpenAL32/Include/alAuxEffectSlot.h index 7f217dd1..9a916dd8 100644 --- a/OpenAL32/Include/alAuxEffectSlot.h +++ b/OpenAL32/Include/alAuxEffectSlot.h @@ -45,6 +45,7 @@ ALeffectState *NoneCreate(void); ALeffectState *EAXVerbCreate(void); ALeffectState *VerbCreate(void); ALeffectState *EchoCreate(void); +ALeffectState *ModulatorCreate(void); #define ALEffect_Destroy(a) ((a)->Destroy((a))) #define ALEffect_DeviceUpdate(a,b) ((a)->DeviceUpdate((a),(b))) diff --git a/OpenAL32/Include/alEffect.h b/OpenAL32/Include/alEffect.h index fa49e5d1..6cbf0e5d 100644 --- a/OpenAL32/Include/alEffect.h +++ b/OpenAL32/Include/alEffect.h @@ -13,6 +13,7 @@ enum { EAXREVERB = 0, REVERB, ECHO, + MODULATOR, MAX_EFFECTS }; @@ -62,6 +63,12 @@ typedef struct ALeffect ALfloat Spread; } Echo; + struct { + ALfloat Frequency; + ALfloat HighPassCutoff; + ALint Waveform; + } Modulator; + // Index to itself ALuint effect; -- cgit v1.2.3