diff options
author | Chris Robinson <[email protected]> | 2013-10-07 05:41:41 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2013-10-07 05:41:41 -0700 |
commit | 8aa237ac239c2be0ee6fc63393c3e5b288aac33f (patch) | |
tree | 04184c1811870f9b71426f05615ab1098c699a9b /OpenAL32 | |
parent | 5d014ba85f39ddd57c03221a1dcf7d0cf3b1101f (diff) |
Fix effect slot struct declarations so KDevelop doesn't barf on them
Diffstat (limited to 'OpenAL32')
-rw-r--r-- | OpenAL32/Include/alAuxEffectSlot.h | 31 | ||||
-rw-r--r-- | OpenAL32/Include/alBuffer.h | 3 | ||||
-rw-r--r-- | OpenAL32/Include/alSource.h | 3 |
3 files changed, 17 insertions, 20 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); diff --git a/OpenAL32/Include/alBuffer.h b/OpenAL32/Include/alBuffer.h index 19390e5e..358b3c9f 100644 --- a/OpenAL32/Include/alBuffer.h +++ b/OpenAL32/Include/alBuffer.h @@ -67,8 +67,7 @@ static inline ALuint FrameSizeFromFmt(enum FmtChannels chans, enum FmtType type) } -typedef struct ALbuffer -{ +typedef struct ALbuffer { ALvoid *data; ALsizei Frequency; diff --git a/OpenAL32/Include/alSource.h b/OpenAL32/Include/alSource.h index 632c8fc1..f547b188 100644 --- a/OpenAL32/Include/alSource.h +++ b/OpenAL32/Include/alSource.h @@ -22,8 +22,7 @@ extern const ALsizei ResamplerPadding[ResamplerMax]; extern const ALsizei ResamplerPrePadding[ResamplerMax]; -typedef struct ALbufferlistitem -{ +typedef struct ALbufferlistitem { struct ALbuffer *buffer; struct ALbufferlistitem *next; struct ALbufferlistitem *prev; |