diff options
author | Chris Robinson <[email protected]> | 2016-08-25 03:42:43 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2016-08-25 03:49:57 -0700 |
commit | 0fbf34fb4592aa29fcbf4e725719cb253e7d3a78 (patch) | |
tree | b378b50a61dd604bb7d2baadb127834c4c55e678 /OpenAL32/alAuxEffectSlot.c | |
parent | d8e9b3c621762e3d9e2b81034e19aa0d671247ae (diff) |
Add a ref count to ALeffectState
This is mostly just reorganizing the effects to call the Construct method which
initializes the ref count.
Diffstat (limited to 'OpenAL32/alAuxEffectSlot.c')
-rw-r--r-- | OpenAL32/alAuxEffectSlot.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/OpenAL32/alAuxEffectSlot.c b/OpenAL32/alAuxEffectSlot.c index 50f1e5c5..1a20952b 100644 --- a/OpenAL32/alAuxEffectSlot.c +++ b/OpenAL32/alAuxEffectSlot.c @@ -523,6 +523,14 @@ ALenum InitializeEffect(ALCdevice *Device, ALeffectslot *EffectSlot, ALeffect *e } +void ALeffectState_Construct(ALeffectState *state) +{ + InitRef(&state->Ref, 1); + + state->OutBuffer = NULL; + state->OutChannels = 0; +} + void ALeffectState_Destruct(ALeffectState *UNUSED(state)) { } |