aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include/alEffect.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2013-05-25 22:31:24 -0700
committerChris Robinson <[email protected]>2013-05-25 22:31:24 -0700
commit2759239754c4e9b7ff3f6d8a267c6a208dae48ed (patch)
treecf461279d37c146948ba287c6097bb6b0b31d6d9 /OpenAL32/Include/alEffect.h
parentd1c5599c8ead4905d46e5d86f3f0547d3a925d44 (diff)
Define the ALeffect typedef with the struct
Diffstat (limited to 'OpenAL32/Include/alEffect.h')
-rw-r--r--OpenAL32/Include/alEffect.h25
1 files changed, 12 insertions, 13 deletions
diff --git a/OpenAL32/Include/alEffect.h b/OpenAL32/Include/alEffect.h
index c0bbb40a..6399ff38 100644
--- a/OpenAL32/Include/alEffect.h
+++ b/OpenAL32/Include/alEffect.h
@@ -7,7 +7,7 @@
extern "C" {
#endif
-typedef struct ALeffect ALeffect;
+struct ALeffect;
enum {
EAXREVERB = 0,
@@ -28,15 +28,15 @@ extern ALfloat ReverbBoost;
extern ALboolean EmulateEAXReverb;
struct ALeffectVtable {
- void (*const SetParami)(ALeffect *effect, ALCcontext *context, ALenum param, ALint val);
- void (*const SetParamiv)(ALeffect *effect, ALCcontext *context, ALenum param, const ALint *vals);
- void (*const SetParamf)(ALeffect *effect, ALCcontext *context, ALenum param, ALfloat val);
- void (*const SetParamfv)(ALeffect *effect, ALCcontext *context, ALenum param, const ALfloat *vals);
-
- void (*const GetParami)(ALeffect *effect, ALCcontext *context, ALenum param, ALint *val);
- void (*const GetParamiv)(ALeffect *effect, ALCcontext *context, ALenum param, ALint *vals);
- void (*const GetParamf)(ALeffect *effect, ALCcontext *context, ALenum param, ALfloat *val);
- void (*const GetParamfv)(ALeffect *effect, ALCcontext *context, ALenum param, ALfloat *vals);
+ void (*const SetParami)(struct ALeffect *effect, ALCcontext *context, ALenum param, ALint val);
+ void (*const SetParamiv)(struct ALeffect *effect, ALCcontext *context, ALenum param, const ALint *vals);
+ void (*const SetParamf)(struct ALeffect *effect, ALCcontext *context, ALenum param, ALfloat val);
+ void (*const SetParamfv)(struct ALeffect *effect, ALCcontext *context, ALenum param, const ALfloat *vals);
+
+ void (*const GetParami)(struct ALeffect *effect, ALCcontext *context, ALenum param, ALint *val);
+ void (*const GetParamiv)(struct ALeffect *effect, ALCcontext *context, ALenum param, ALint *vals);
+ void (*const GetParamf)(struct ALeffect *effect, ALCcontext *context, ALenum param, ALfloat *val);
+ void (*const GetParamfv)(struct ALeffect *effect, ALCcontext *context, ALenum param, ALfloat *vals);
};
#define DEFINE_ALEFFECT_VTABLE(T) \
@@ -150,8 +150,7 @@ typedef union ALeffectProps {
} Distortion;
} ALeffectProps;
-struct ALeffect
-{
+typedef struct ALeffect {
// Effect type (AL_EFFECT_NULL, ...)
ALenum type;
@@ -161,7 +160,7 @@ struct ALeffect
/* Self ID */
ALuint id;
-};
+} ALeffect;
#define ALeffect_SetParami(x, c, p, v) ((x)->vtbl->SetParami((x),(c),(p),(v)))
#define ALeffect_SetParamiv(x, c, p, v) ((x)->vtbl->SetParamiv((x),(c),(p),(v)))