diff options
author | Chris Robinson <chris.kcat@gmail.com> | 2021-04-24 08:28:13 -0700 |
---|---|---|
committer | Chris Robinson <chris.kcat@gmail.com> | 2021-04-24 08:28:13 -0700 |
commit | b54bb388a3dbd92518beef4bda03df5854aad1a9 (patch) | |
tree | 8cde0be5ca02b61ae81bf0c3ccdd3a2439b1923a /al/auxeffectslot.cpp | |
parent | 519672c8e54585bc6d827dd3efed943e06b3e6cd (diff) |
Create a base the ALCdevice and ALCcontext structs
A base that contains the API-agnostic data, with ALCdevice and ALCcontext being
for AL-specific data.
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; { |