aboutsummaryrefslogtreecommitdiffstats
path: root/alc/alc.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-05-10 20:16:43 -0700
committerChris Robinson <[email protected]>2020-05-10 20:16:43 -0700
commit0406e3bef75bd42e310f147fc3f9589859140f3f (patch)
tree452ec840dde654776ca7cb81d28861c2ff27fefa /alc/alc.cpp
parent2fb4ac1621dff45940c40bfdf4d82737bb4e6fc3 (diff)
Change a couple functions into member functions
Diffstat (limited to 'alc/alc.cpp')
-rw-r--r--alc/alc.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/alc/alc.cpp b/alc/alc.cpp
index e7cd65b2..258d3de3 100644
--- a/alc/alc.cpp
+++ b/alc/alc.cpp
@@ -2230,7 +2230,7 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const int *attrList)
EffectState *state{slot->Effect.State};
state->mOutTarget = device->Dry.Buffer;
state->deviceUpdate(device);
- UpdateEffectSlotProps(slot, context);
+ slot->updateProps(context);
}
std::unique_lock<std::mutex> proplock{context->mPropLock};
@@ -2251,7 +2251,7 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const int *attrList)
EffectState *state{slot->Effect.State};
state->mOutTarget = device->Dry.Buffer;
state->deviceUpdate(device);
- UpdateEffectSlotProps(slot, context);
+ slot->updateProps(context);
}
}
slotlock.unlock();
@@ -2563,7 +2563,7 @@ void ALCcontext::init()
if(DefaultEffect.type != AL_EFFECT_NULL && mDevice->Type == Playback)
{
mDefaultSlot = std::unique_ptr<ALeffectslot>{new ALeffectslot{}};
- if(InitEffectSlot(mDefaultSlot.get()) == AL_NO_ERROR)
+ if(mDefaultSlot->init() == AL_NO_ERROR)
aluInitEffectPanning(mDefaultSlot.get(), mDevice.get());
else
{
@@ -3462,10 +3462,10 @@ START_API_FUNC
ContextList.emplace(iter, context.get());
}
- if(context->mDefaultSlot)
+ if(ALeffectslot *slot{context->mDefaultSlot.get()})
{
- if(InitializeEffect(context.get(), context->mDefaultSlot.get(), &DefaultEffect) == AL_NO_ERROR)
- UpdateEffectSlotProps(context->mDefaultSlot.get(), context.get());
+ if(slot->initEffect(&DefaultEffect, context.get()) == AL_NO_ERROR)
+ slot->updateProps(context.get());
else
ERR("Failed to initialize the default effect\n");
}