aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alEffect.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-01-27 21:16:24 -0800
committerChris Robinson <[email protected]>2018-01-27 21:16:24 -0800
commitf16ece6048ebe3e81b892476fa0dc66f4091a4a9 (patch)
tree4892fb3b275a2164bf07fcf08cfb79888c69ec12 /OpenAL32/alEffect.c
parente12059a31186605ce2ed534ba42004edf3df5a6b (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/alEffect.c')
-rw-r--r--OpenAL32/alEffect.c11
1 files changed, 4 insertions, 7 deletions
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;