diff options
author | Chris Robinson <[email protected]> | 2013-05-21 05:02:25 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2013-05-21 05:02:25 -0700 |
commit | 5c8c40afefc4e42635da91a876232cfc0975f6fd (patch) | |
tree | a05479e246a9494c1d590f9b080dee253c2505d9 /Alc/alcDedicated.c | |
parent | 5516d8df0b21722c96189b946a8a10e9cbb0c001 (diff) |
Auto-generate wrappers to upcast objects before calling user methods
Diffstat (limited to 'Alc/alcDedicated.c')
-rw-r--r-- | Alc/alcDedicated.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/Alc/alcDedicated.c b/Alc/alcDedicated.c index a3267509..7d32c153 100644 --- a/Alc/alcDedicated.c +++ b/Alc/alcDedicated.c @@ -36,22 +36,20 @@ typedef struct ALdedicatedState { } ALdedicatedState; -static ALvoid ALdedicatedState_Destroy(ALeffectState *effect) +static ALvoid ALdedicatedState_Destroy(ALdedicatedState *state) { - ALdedicatedState *state = STATIC_UPCAST(ALdedicatedState, ALeffectState, effect); free(state); } -static ALboolean ALdedicatedState_DeviceUpdate(ALeffectState *effect, ALCdevice *Device) +static ALboolean ALdedicatedState_DeviceUpdate(ALdedicatedState *state, ALCdevice *Device) { - (void)effect; - (void)Device; return AL_TRUE; + (void)state; + (void)Device; } -static ALvoid ALdedicatedState_Update(ALeffectState *effect, ALCdevice *device, const ALeffectslot *Slot) +static ALvoid ALdedicatedState_Update(ALdedicatedState *state, ALCdevice *device, const ALeffectslot *Slot) { - ALdedicatedState *state = STATIC_UPCAST(ALdedicatedState, ALeffectState, effect); ALfloat Gain; ALsizei s; @@ -65,9 +63,8 @@ static ALvoid ALdedicatedState_Update(ALeffectState *effect, ALCdevice *device, state->gains[LFE] = Gain; } -static ALvoid ALdedicatedState_Process(ALeffectState *effect, ALuint SamplesToDo, const ALfloat *RESTRICT SamplesIn, ALfloat (*RESTRICT SamplesOut)[BUFFERSIZE]) +static ALvoid ALdedicatedState_Process(ALdedicatedState *state, ALuint SamplesToDo, const ALfloat *RESTRICT SamplesIn, ALfloat (*RESTRICT SamplesOut)[BUFFERSIZE]) { - ALdedicatedState *state = STATIC_UPCAST(ALdedicatedState, ALeffectState, effect); const ALfloat *gains = state->gains; ALuint i, c; |