From f16ece6048ebe3e81b892476fa0dc66f4091a4a9 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 27 Jan 2018 21:16:24 -0800 Subject: 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. --- OpenAL32/alEffect.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'OpenAL32/alEffect.c') diff --git a/OpenAL32/alEffect.c b/OpenAL32/alEffect.c index 0fa2ee08..e538433f 100644 --- a/OpenAL32/alEffect.c +++ b/OpenAL32/alEffect.c @@ -32,6 +32,10 @@ #include "alError.h" +extern inline void LockEffectList(ALCdevice *device); +extern inline void UnlockEffectList(ALCdevice *device); +extern inline ALboolean IsReverbEffect(ALenum type); + const struct EffectList EffectList[EFFECTLIST_SIZE] = { { "eaxreverb", EAXREVERB_EFFECT, AL_EFFECT_EAXREVERB }, { "reverb", REVERB_EFFECT, AL_EFFECT_REVERB }, @@ -48,17 +52,10 @@ const struct EffectList EffectList[EFFECTLIST_SIZE] = { ALboolean DisabledEffects[MAX_EFFECTS]; -extern inline ALboolean IsReverbEffect(ALenum type); - static ALeffect *AllocEffect(ALCcontext *context); static void FreeEffect(ALCdevice *device, ALeffect *effect); static void InitEffectParams(ALeffect *effect, ALenum type); -static inline void LockEffectList(ALCdevice *device) -{ almtx_lock(&device->EffectLock); } -static inline void UnlockEffectList(ALCdevice *device) -{ almtx_unlock(&device->EffectLock); } - static inline ALeffect *LookupEffect(ALCdevice *device, ALuint id) { EffectSubList *sublist; -- cgit v1.2.3