aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include/alAuxEffectSlot.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2013-10-07 05:41:41 -0700
committerChris Robinson <[email protected]>2013-10-07 05:41:41 -0700
commit8aa237ac239c2be0ee6fc63393c3e5b288aac33f (patch)
tree04184c1811870f9b71426f05615ab1098c699a9b /OpenAL32/Include/alAuxEffectSlot.h
parent5d014ba85f39ddd57c03221a1dcf7d0cf3b1101f (diff)
Fix effect slot struct declarations so KDevelop doesn't barf on them
Diffstat (limited to 'OpenAL32/Include/alAuxEffectSlot.h')
-rw-r--r--OpenAL32/Include/alAuxEffectSlot.h31
1 files changed, 15 insertions, 16 deletions
diff --git a/OpenAL32/Include/alAuxEffectSlot.h b/OpenAL32/Include/alAuxEffectSlot.h
index 945860a0..71898964 100644
--- a/OpenAL32/Include/alAuxEffectSlot.h
+++ b/OpenAL32/Include/alAuxEffectSlot.h
@@ -8,23 +8,21 @@
extern "C" {
#endif
-typedef struct ALeffectStateFactory ALeffectStateFactory;
+struct ALeffectStateVtable;
+struct ALeffectslot;
-typedef struct ALeffectState ALeffectState;
-typedef struct ALeffectslot ALeffectslot;
+typedef struct ALeffectState {
+ const struct ALeffectStateVtable *vtbl;
+} ALeffectState;
struct ALeffectStateVtable {
ALvoid (*const Destruct)(ALeffectState *state);
ALboolean (*const deviceUpdate)(ALeffectState *state, ALCdevice *device);
- ALvoid (*const update)(ALeffectState *state, ALCdevice *device, const ALeffectslot *slot);
+ ALvoid (*const update)(ALeffectState *state, ALCdevice *device, const struct ALeffectslot *slot);
ALvoid (*const process)(ALeffectState *state, ALuint samplesToDo, const ALfloat *restrict samplesIn, ALfloat (*restrict samplesOut)[BUFFERSIZE]);
- void (*const Delete)(ALeffectState *state);
-};
-
-struct ALeffectState {
- const struct ALeffectStateVtable *vtbl;
+ void (*const Delete)(struct ALeffectState *state);
};
#define DEFINE_ALEFFECTSTATE_VTABLE(T) \
@@ -50,12 +48,14 @@ static const struct ALeffectStateVtable T##_ALeffectState_vtable = { \
}
-struct ALeffectStateFactoryVtable {
- ALeffectState *(*const create)(ALeffectStateFactory *factory);
-};
+struct ALeffectStateFactoryVtable;
-struct ALeffectStateFactory {
+typedef struct ALeffectStateFactory {
const struct ALeffectStateFactoryVtable *vtbl;
+} ALeffectStateFactory;
+
+struct ALeffectStateFactoryVtable {
+ ALeffectState *(*const create)(ALeffectStateFactory *factory);
};
#define DEFINE_ALEFFECTSTATEFACTORY_VTABLE(T) \
@@ -67,8 +67,7 @@ static const struct ALeffectStateFactoryVtable T##_ALeffectStateFactory_vtable =
}
-struct ALeffectslot
-{
+typedef struct ALeffectslot {
ALenum EffectType;
ALeffectProps EffectProps;
@@ -87,7 +86,7 @@ struct ALeffectslot
/* Self ID */
ALuint id;
-};
+} ALeffectslot;
ALenum InitEffectSlot(ALeffectslot *slot);