aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/alcModulator.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2013-05-21 05:02:25 -0700
committerChris Robinson <[email protected]>2013-05-21 05:02:25 -0700
commit5c8c40afefc4e42635da91a876232cfc0975f6fd (patch)
treea05479e246a9494c1d590f9b080dee253c2505d9 /Alc/alcModulator.c
parent5516d8df0b21722c96189b946a8a10e9cbb0c001 (diff)
Auto-generate wrappers to upcast objects before calling user methods
Diffstat (limited to 'Alc/alcModulator.c')
-rw-r--r--Alc/alcModulator.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/Alc/alcModulator.c b/Alc/alcModulator.c
index b2ea6642..5d4fdab8 100644
--- a/Alc/alcModulator.c
+++ b/Alc/alcModulator.c
@@ -129,22 +129,20 @@ DECL_TEMPLATE(Square)
#undef DECL_TEMPLATE
-static ALvoid ALmodulatorState_Destroy(ALeffectState *effect)
+static ALvoid ALmodulatorState_Destroy(ALmodulatorState *state)
{
- ALmodulatorState *state = STATIC_UPCAST(ALmodulatorState, ALeffectState, effect);
free(state);
}
-static ALboolean ALmodulatorState_DeviceUpdate(ALeffectState *effect, ALCdevice *Device)
+static ALboolean ALmodulatorState_DeviceUpdate(ALmodulatorState *state, ALCdevice *Device)
{
return AL_TRUE;
- (void)effect;
+ (void)state;
(void)Device;
}
-static ALvoid ALmodulatorState_Update(ALeffectState *effect, ALCdevice *Device, const ALeffectslot *Slot)
+static ALvoid ALmodulatorState_Update(ALmodulatorState *state, ALCdevice *Device, const ALeffectslot *Slot)
{
- ALmodulatorState *state = STATIC_UPCAST(ALmodulatorState, ALeffectState, effect);
ALfloat gain, cw, a = 0.0f;
ALuint index;
@@ -175,10 +173,8 @@ static ALvoid ALmodulatorState_Update(ALeffectState *effect, ALCdevice *Device,
}
}
-static ALvoid ALmodulatorState_Process(ALeffectState *effect, ALuint SamplesToDo, const ALfloat *RESTRICT SamplesIn, ALfloat (*RESTRICT SamplesOut)[BUFFERSIZE])
+static ALvoid ALmodulatorState_Process(ALmodulatorState *state, ALuint SamplesToDo, const ALfloat *RESTRICT SamplesIn, ALfloat (*RESTRICT SamplesOut)[BUFFERSIZE])
{
- ALmodulatorState *state = STATIC_UPCAST(ALmodulatorState, ALeffectState, effect);
-
switch(state->Waveform)
{
case SINUSOID: