diff options
author | Chris Robinson <[email protected]> | 2018-01-27 21:16:24 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-01-27 21:16:24 -0800 |
commit | f16ece6048ebe3e81b892476fa0dc66f4091a4a9 (patch) | |
tree | 4892fb3b275a2164bf07fcf08cfb79888c69ec12 /OpenAL32/Include | |
parent | e12059a31186605ce2ed534ba42004edf3df5a6b (diff) |
Move some inline functions into a header instead of copying them
Unfortunately does not include the Lookup* functions, which need the full type
declaration to offset the pointer.
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r-- | OpenAL32/Include/alMain.h | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index d21ec3b0..5b31696e 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -723,10 +723,19 @@ inline ALint GetChannelIdxByName(const RealMixParams *real, enum Channel chan) { return GetChannelIndex(real->ChannelName, chan); } -inline void LockBufferList(ALCdevice *device) -{ almtx_lock(&device->BufferLock); } -inline void UnlockBufferList(ALCdevice *device) -{ almtx_unlock(&device->BufferLock); } +inline void LockBufferList(ALCdevice *device) { almtx_lock(&device->BufferLock); } +inline void UnlockBufferList(ALCdevice *device) { almtx_unlock(&device->BufferLock); } + +inline void LockEffectList(ALCdevice *device) { almtx_lock(&device->EffectLock); } +inline void UnlockEffectList(ALCdevice *device) { almtx_unlock(&device->EffectLock); } + +inline void LockFilterList(ALCdevice *device) { almtx_lock(&device->FilterLock); } +inline void UnlockFilterList(ALCdevice *device) { almtx_unlock(&device->FilterLock); } + +inline void LockEffectSlotList(ALCcontext *context) +{ almtx_lock(&context->EffectSlotLock); } +inline void UnlockEffectSlotList(ALCcontext *context) +{ almtx_unlock(&context->EffectSlotLock); } vector_al_string SearchDataFiles(const char *match, const char *subdir); |