diff options
Diffstat (limited to 'Alc/effects/chorus.c')
-rw-r--r-- | Alc/effects/chorus.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/Alc/effects/chorus.c b/Alc/effects/chorus.c index c74bf0b5..22241af5 100644 --- a/Alc/effects/chorus.c +++ b/Alc/effects/chorus.c @@ -243,9 +243,9 @@ static ALvoid ALchorusState_Process(ALchorusState *state, ALuint SamplesToDo, co ProcessSinusoid(state, SamplesToDo, SamplesIn, SamplesOut); } -static ALeffectStateFactory *ALchorusState_getCreator(void) +static void ALchorusState_Delete(ALchorusState *state) { - return STATIC_CAST(ALeffectStateFactory, &ChorusFactory); + free(state); } DEFINE_ALEFFECTSTATE_VTABLE(ALchorusState); @@ -267,13 +267,6 @@ static ALeffectState *ALchorusStateFactory_create(void) return STATIC_CAST(ALeffectState, state); } -static ALvoid ALchorusStateFactory_destroy(ALeffectState *effect) -{ - ALchorusState *state = STATIC_UPCAST(ALchorusState, ALeffectState, effect); - ALchorusState_Destruct(state); - free(state); -} - DEFINE_ALEFFECTSTATEFACTORY_VTABLE(ALchorusStateFactory); |