diff options
Diffstat (limited to 'al/auxeffectslot.cpp')
-rw-r--r-- | al/auxeffectslot.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/al/auxeffectslot.cpp b/al/auxeffectslot.cpp index 0b64f9da..3ee0a46e 100644 --- a/al/auxeffectslot.cpp +++ b/al/auxeffectslot.cpp @@ -325,7 +325,7 @@ START_API_FUNC if UNLIKELY(n <= 0) return; std::unique_lock<std::mutex> slotlock{context->mEffectSlotLock}; - ALCdevice *device{context->mDevice.get()}; + ALCdevice *device{context->mALDevice.get()}; if(static_cast<ALuint>(n) > device->AuxiliaryEffectSlotMax-context->mNumEffectSlots) { context->setError(AL_OUT_OF_MEMORY, "Exceeding %u effect slot limit (%u + %d)", @@ -571,7 +571,7 @@ START_API_FUNC switch(param) { case AL_EFFECTSLOT_EFFECT: - device = context->mDevice.get(); + device = context->mALDevice.get(); { std::lock_guard<std::mutex> ___{device->EffectLock}; @@ -639,7 +639,7 @@ START_API_FUNC break; case AL_BUFFER: - device = context->mDevice.get(); + device = context->mALDevice.get(); if(slot->mState == SlotState::Playing) SETERR_RETURN(context, AL_INVALID_OPERATION,, @@ -946,7 +946,7 @@ ALenum ALeffectslot::initEffect(ALeffect *effect, ALCcontext *context) } al::intrusive_ptr<EffectState> state{factory->create()}; - ALCdevice *device{context->mDevice.get()}; + ALCdevice *device{context->mALDevice.get()}; std::unique_lock<std::mutex> statelock{device->StateLock}; state->mOutTarget = device->Dry.Buffer; { |