diff options
author | Chris Robinson <[email protected]> | 2013-05-29 11:17:45 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2013-05-29 11:17:45 -0700 |
commit | 764e3aa4963c4fbfb08b313d93f6246b5d79b1b9 (patch) | |
tree | bf565ba0334fbd943bc2146f3882e05b70a69dc4 /OpenAL32/Include/alAuxEffectSlot.h | |
parent | e96cc656e9c9176ba60cd191896fd6386a7fd74d (diff) |
Fix up the naming convention of effect methods
Diffstat (limited to 'OpenAL32/Include/alAuxEffectSlot.h')
-rw-r--r-- | OpenAL32/Include/alAuxEffectSlot.h | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/OpenAL32/Include/alAuxEffectSlot.h b/OpenAL32/Include/alAuxEffectSlot.h index 60724654..463a6770 100644 --- a/OpenAL32/Include/alAuxEffectSlot.h +++ b/OpenAL32/Include/alAuxEffectSlot.h @@ -15,9 +15,10 @@ typedef struct ALeffectslot ALeffectslot; 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 Process)(ALeffectState *state, ALuint samplesToDo, const ALfloat *restrict samplesIn, ALfloat (*restrict samplesOut)[BUFFERSIZE]); + + ALboolean (*const deviceUpdate)(ALeffectState *state, ALCdevice *device); + ALvoid (*const update)(ALeffectState *state, ALCdevice *device, const ALeffectslot *slot); + ALvoid (*const process)(ALeffectState *state, ALuint samplesToDo, const ALfloat *restrict samplesIn, ALfloat (*restrict samplesOut)[BUFFERSIZE]); void (*const Delete)(ALeffectState *state); }; @@ -29,20 +30,22 @@ struct ALeffectState { #define DEFINE_ALEFFECTSTATE_VTABLE(T) \ static ALvoid T##_ALeffectState_Destruct(ALeffectState *state) \ { T##_Destruct(STATIC_UPCAST(T, ALeffectState, state)); } \ -static ALboolean T##_ALeffectState_DeviceUpdate(ALeffectState *state, ALCdevice *device) \ -{ return T##_DeviceUpdate(STATIC_UPCAST(T, ALeffectState, state), device); } \ -static ALvoid T##_ALeffectState_Update(ALeffectState *state, ALCdevice *device, const ALeffectslot *slot) \ -{ T##_Update(STATIC_UPCAST(T, ALeffectState, state), device, slot); } \ -static ALvoid T##_ALeffectState_Process(ALeffectState *state, ALuint samplesToDo, const ALfloat *restrict samplesIn, ALfloat (*restrict samplesOut)[BUFFERSIZE]) \ -{ T##_Process(STATIC_UPCAST(T, ALeffectState, state), samplesToDo, samplesIn, samplesOut); } \ +static ALboolean T##_ALeffectState_deviceUpdate(ALeffectState *state, ALCdevice *device) \ +{ return T##_deviceUpdate(STATIC_UPCAST(T, ALeffectState, state), device); } \ +static ALvoid T##_ALeffectState_update(ALeffectState *state, ALCdevice *device, const ALeffectslot *slot) \ +{ T##_update(STATIC_UPCAST(T, ALeffectState, state), device, slot); } \ +static ALvoid T##_ALeffectState_process(ALeffectState *state, ALuint samplesToDo, const ALfloat *restrict samplesIn, ALfloat (*restrict samplesOut)[BUFFERSIZE]) \ +{ T##_process(STATIC_UPCAST(T, ALeffectState, state), samplesToDo, samplesIn, samplesOut); } \ static ALvoid T##_ALeffectState_Delete(ALeffectState *state) \ { T##_Delete(STATIC_UPCAST(T, ALeffectState, state)); } \ \ static const struct ALeffectStateVtable T##_ALeffectState_vtable = { \ T##_ALeffectState_Destruct, \ - T##_ALeffectState_DeviceUpdate, \ - T##_ALeffectState_Update, \ - T##_ALeffectState_Process, \ + \ + T##_ALeffectState_deviceUpdate, \ + T##_ALeffectState_update, \ + T##_ALeffectState_process, \ + \ T##_ALeffectState_Delete, \ } |