aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include/alFilter.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-07-28 19:09:07 -0700
committerChris Robinson <[email protected]>2019-07-28 19:09:07 -0700
commit83432a7e5c7f565a08c41bb104ae25286c5fc82b (patch)
treeb16a5b86f037190bac4686adede6078d9928131a /OpenAL32/Include/alFilter.h
parentcb3e96e75640730b9391f0d2d922eecd9ee2ce79 (diff)
Move some headers out of the Include subdirectory
Diffstat (limited to 'OpenAL32/Include/alFilter.h')
-rw-r--r--OpenAL32/Include/alFilter.h56
1 files changed, 0 insertions, 56 deletions
diff --git a/OpenAL32/Include/alFilter.h b/OpenAL32/Include/alFilter.h
deleted file mode 100644
index 1c033ac3..00000000
--- a/OpenAL32/Include/alFilter.h
+++ /dev/null
@@ -1,56 +0,0 @@
-#ifndef _AL_FILTER_H_
-#define _AL_FILTER_H_
-
-#include "AL/alc.h"
-#include "AL/al.h"
-
-
-#define LOWPASSFREQREF (5000.0f)
-#define HIGHPASSFREQREF (250.0f)
-
-
-struct ALfilter;
-
-struct ALfilterVtable {
- void (*const setParami)(ALfilter *filter, ALCcontext *context, ALenum param, ALint val);
- void (*const setParamiv)(ALfilter *filter, ALCcontext *context, ALenum param, const ALint *vals);
- void (*const setParamf)(ALfilter *filter, ALCcontext *context, ALenum param, ALfloat val);
- void (*const setParamfv)(ALfilter *filter, ALCcontext *context, ALenum param, const ALfloat *vals);
-
- void (*const getParami)(ALfilter *filter, ALCcontext *context, ALenum param, ALint *val);
- void (*const getParamiv)(ALfilter *filter, ALCcontext *context, ALenum param, ALint *vals);
- void (*const getParamf)(ALfilter *filter, ALCcontext *context, ALenum param, ALfloat *val);
- void (*const getParamfv)(ALfilter *filter, ALCcontext *context, ALenum param, ALfloat *vals);
-};
-
-#define DEFINE_ALFILTER_VTABLE(T) \
-const ALfilterVtable T##_vtable = { \
- T##_setParami, T##_setParamiv, T##_setParamf, T##_setParamfv, \
- T##_getParami, T##_getParamiv, T##_getParamf, T##_getParamfv, \
-}
-
-struct ALfilter {
- // Filter type (AL_FILTER_NULL, ...)
- ALenum type;
-
- ALfloat Gain;
- ALfloat GainHF;
- ALfloat HFReference;
- ALfloat GainLF;
- ALfloat LFReference;
-
- const ALfilterVtable *vtab;
-
- /* Self ID */
- ALuint id;
-};
-#define ALfilter_setParami(o, c, p, v) ((o)->vtab->setParami(o, c, p, v))
-#define ALfilter_setParamf(o, c, p, v) ((o)->vtab->setParamf(o, c, p, v))
-#define ALfilter_setParamiv(o, c, p, v) ((o)->vtab->setParamiv(o, c, p, v))
-#define ALfilter_setParamfv(o, c, p, v) ((o)->vtab->setParamfv(o, c, p, v))
-#define ALfilter_getParami(o, c, p, v) ((o)->vtab->getParami(o, c, p, v))
-#define ALfilter_getParamf(o, c, p, v) ((o)->vtab->getParamf(o, c, p, v))
-#define ALfilter_getParamiv(o, c, p, v) ((o)->vtab->getParamiv(o, c, p, v))
-#define ALfilter_getParamfv(o, c, p, v) ((o)->vtab->getParamfv(o, c, p, v))
-
-#endif