aboutsummaryrefslogtreecommitdiffstats
path: root/al
diff options
context:
space:
mode:
Diffstat (limited to 'al')
-rw-r--r--al/auxeffectslot.cpp22
-rw-r--r--al/buffer.cpp48
-rw-r--r--al/direct_defs.h26
-rw-r--r--al/effect.cpp22
-rw-r--r--al/event.cpp4
-rw-r--r--al/filter.cpp22
-rw-r--r--al/listener.cpp24
-rw-r--r--al/source.cpp74
-rw-r--r--al/state.cpp12
9 files changed, 125 insertions, 129 deletions
diff --git a/al/auxeffectslot.cpp b/al/auxeffectslot.cpp
index d4f80ca2..acc05f94 100644
--- a/al/auxeffectslot.cpp
+++ b/al/auxeffectslot.cpp
@@ -848,17 +848,17 @@ FORCE_ALIGN void AL_APIENTRY alGetAuxiliaryEffectSlotfvDirect(ALCcontext *contex
}
}
-DECL_FUNC2(void, alGenAuxiliaryEffectSlots, ALsizei, ALuint*)
-DECL_FUNC2(void, alDeleteAuxiliaryEffectSlots, ALsizei, const ALuint*)
-DECL_FUNC1(ALboolean, alIsAuxiliaryEffectSlot, ALuint)
-DECL_FUNC3(void, alAuxiliaryEffectSlotf, ALuint, ALenum, ALfloat)
-DECL_FUNC3(void, alAuxiliaryEffectSlotfv, ALuint, ALenum, const ALfloat*)
-DECL_FUNC3(void, alAuxiliaryEffectSloti, ALuint, ALenum, ALint)
-DECL_FUNC3(void, alAuxiliaryEffectSlotiv, ALuint, ALenum, const ALint*)
-DECL_FUNC3(void, alGetAuxiliaryEffectSlotf, ALuint, ALenum, ALfloat*)
-DECL_FUNC3(void, alGetAuxiliaryEffectSlotfv, ALuint, ALenum, ALfloat*)
-DECL_FUNC3(void, alGetAuxiliaryEffectSloti, ALuint, ALenum, ALint*)
-DECL_FUNC3(void, alGetAuxiliaryEffectSlotiv, ALuint, ALenum, ALint*)
+AL_API DECL_FUNC2(void, alGenAuxiliaryEffectSlots, ALsizei, ALuint*)
+AL_API DECL_FUNC2(void, alDeleteAuxiliaryEffectSlots, ALsizei, const ALuint*)
+AL_API DECL_FUNC1(ALboolean, alIsAuxiliaryEffectSlot, ALuint)
+AL_API DECL_FUNC3(void, alAuxiliaryEffectSlotf, ALuint, ALenum, ALfloat)
+AL_API DECL_FUNC3(void, alAuxiliaryEffectSlotfv, ALuint, ALenum, const ALfloat*)
+AL_API DECL_FUNC3(void, alAuxiliaryEffectSloti, ALuint, ALenum, ALint)
+AL_API DECL_FUNC3(void, alAuxiliaryEffectSlotiv, ALuint, ALenum, const ALint*)
+AL_API DECL_FUNC3(void, alGetAuxiliaryEffectSlotf, ALuint, ALenum, ALfloat*)
+AL_API DECL_FUNC3(void, alGetAuxiliaryEffectSlotfv, ALuint, ALenum, ALfloat*)
+AL_API DECL_FUNC3(void, alGetAuxiliaryEffectSloti, ALuint, ALenum, ALint*)
+AL_API DECL_FUNC3(void, alGetAuxiliaryEffectSlotiv, ALuint, ALenum, ALint*)
ALeffectslot::ALeffectslot(ALCcontext *context)
diff --git a/al/buffer.cpp b/al/buffer.cpp
index 6d0eec7f..01c9b5a4 100644
--- a/al/buffer.cpp
+++ b/al/buffer.cpp
@@ -1381,31 +1381,31 @@ FORCE_ALIGN void AL_APIENTRY alGetBufferPtrvDirectSOFT(ALCcontext *context, ALui
}
-DECL_FUNC2(void, alGenBuffers, ALsizei, ALuint*)
-DECL_FUNC2(void, alDeleteBuffers, ALsizei, const ALuint*)
-DECL_FUNC1(ALboolean, alIsBuffer, ALuint)
+AL_API DECL_FUNC2(void, alGenBuffers, ALsizei, ALuint*)
+AL_API DECL_FUNC2(void, alDeleteBuffers, ALsizei, const ALuint*)
+AL_API DECL_FUNC1(ALboolean, alIsBuffer, ALuint)
DECL_FUNC5(void, alBufferDataStatic, ALuint, ALenum, ALvoid*, ALsizei, ALsizei)
-DECL_FUNCEXT5(void, alBufferCallback,SOFT, ALuint, ALenum, ALsizei, ALBUFFERCALLBACKTYPESOFT, ALvoid*)
-DECL_FUNCEXT6(void, alBufferStorage,SOFT, ALuint, ALenum, const ALvoid*, ALsizei, ALsizei, ALbitfieldSOFT)
-DECL_FUNCEXT4(void*, alMapBuffer,SOFT, ALuint, ALsizei, ALsizei, ALbitfieldSOFT)
-DECL_FUNCEXT1(void, alUnmapBuffer,SOFT, ALuint)
-DECL_FUNCEXT3(void, alFlushMappedBuffer,SOFT, ALuint, ALsizei, ALsizei)
-DECL_FUNCEXT5(void, alBufferSubData,SOFT, ALuint, ALenum, const ALvoid*, ALsizei, ALsizei)
-DECL_FUNC3(void, alBufferf, ALuint, ALenum, ALfloat)
-DECL_FUNC5(void, alBuffer3f, ALuint, ALenum, ALfloat, ALfloat, ALfloat)
-DECL_FUNC3(void, alBufferfv, ALuint, ALenum, const ALfloat*)
-DECL_FUNC3(void, alBufferi, ALuint, ALenum, ALint)
-DECL_FUNC5(void, alBuffer3i, ALuint, ALenum, ALint, ALint, ALint)
-DECL_FUNC3(void, alBufferiv, ALuint, ALenum, const ALint*)
-DECL_FUNC3(void, alGetBufferf, ALuint, ALenum, ALfloat*)
-DECL_FUNC5(void, alGetBuffer3f, ALuint, ALenum, ALfloat*, ALfloat*, ALfloat*)
-DECL_FUNC3(void, alGetBufferfv, ALuint, ALenum, ALfloat*)
-DECL_FUNC3(void, alGetBufferi, ALuint, ALenum, ALint*)
-DECL_FUNC5(void, alGetBuffer3i, ALuint, ALenum, ALint*, ALint*, ALint*)
-DECL_FUNC3(void, alGetBufferiv, ALuint, ALenum, ALint*)
-DECL_FUNCEXT3(void, alGetBufferPtr,SOFT, ALuint, ALenum, ALvoid**)
-DECL_FUNCEXT5(void, alGetBuffer3Ptr,SOFT, ALuint, ALenum, ALvoid**, ALvoid**, ALvoid**)
-DECL_FUNCEXT3(void, alGetBufferPtrv,SOFT, ALuint, ALenum, ALvoid**)
+AL_API DECL_FUNCEXT5(void, alBufferCallback,SOFT, ALuint, ALenum, ALsizei, ALBUFFERCALLBACKTYPESOFT, ALvoid*)
+AL_API DECL_FUNCEXT6(void, alBufferStorage,SOFT, ALuint, ALenum, const ALvoid*, ALsizei, ALsizei, ALbitfieldSOFT)
+AL_API DECL_FUNCEXT4(void*, alMapBuffer,SOFT, ALuint, ALsizei, ALsizei, ALbitfieldSOFT)
+AL_API DECL_FUNCEXT1(void, alUnmapBuffer,SOFT, ALuint)
+AL_API DECL_FUNCEXT3(void, alFlushMappedBuffer,SOFT, ALuint, ALsizei, ALsizei)
+AL_API DECL_FUNCEXT5(void, alBufferSubData,SOFT, ALuint, ALenum, const ALvoid*, ALsizei, ALsizei)
+AL_API DECL_FUNC3(void, alBufferf, ALuint, ALenum, ALfloat)
+AL_API DECL_FUNC5(void, alBuffer3f, ALuint, ALenum, ALfloat, ALfloat, ALfloat)
+AL_API DECL_FUNC3(void, alBufferfv, ALuint, ALenum, const ALfloat*)
+AL_API DECL_FUNC3(void, alBufferi, ALuint, ALenum, ALint)
+AL_API DECL_FUNC5(void, alBuffer3i, ALuint, ALenum, ALint, ALint, ALint)
+AL_API DECL_FUNC3(void, alBufferiv, ALuint, ALenum, const ALint*)
+AL_API DECL_FUNC3(void, alGetBufferf, ALuint, ALenum, ALfloat*)
+AL_API DECL_FUNC5(void, alGetBuffer3f, ALuint, ALenum, ALfloat*, ALfloat*, ALfloat*)
+AL_API DECL_FUNC3(void, alGetBufferfv, ALuint, ALenum, ALfloat*)
+AL_API DECL_FUNC3(void, alGetBufferi, ALuint, ALenum, ALint*)
+AL_API DECL_FUNC5(void, alGetBuffer3i, ALuint, ALenum, ALint*, ALint*, ALint*)
+AL_API DECL_FUNC3(void, alGetBufferiv, ALuint, ALenum, ALint*)
+AL_API DECL_FUNCEXT3(void, alGetBufferPtr,SOFT, ALuint, ALenum, ALvoid**)
+AL_API DECL_FUNCEXT5(void, alGetBuffer3Ptr,SOFT, ALuint, ALenum, ALvoid**, ALvoid**, ALvoid**)
+AL_API DECL_FUNCEXT3(void, alGetBufferPtrv,SOFT, ALuint, ALenum, ALvoid**)
AL_API void AL_APIENTRY alBufferSamplesSOFT(ALuint /*buffer*/, ALuint /*samplerate*/,
ALenum /*internalformat*/, ALsizei /*samples*/, ALenum /*channels*/, ALenum /*type*/,
diff --git a/al/direct_defs.h b/al/direct_defs.h
index 4ab72730..e483fc71 100644
--- a/al/direct_defs.h
+++ b/al/direct_defs.h
@@ -12,7 +12,7 @@ constexpr void DefaultVal() noexcept { }
} // namespace detail_
#define DECL_FUNC(R, Name) \
-R AL_API Name(void) START_API_FUNC \
+R AL_APIENTRY Name(void) START_API_FUNC \
{ \
auto context = GetContextRef(); \
if(!context) UNLIKELY return detail_::DefaultVal<R>(); \
@@ -20,7 +20,7 @@ R AL_API Name(void) START_API_FUNC \
} END_API_FUNC
#define DECL_FUNC1(R, Name, T1) \
-R AL_API Name(T1 a) START_API_FUNC \
+R AL_APIENTRY Name(T1 a) START_API_FUNC \
{ \
auto context = GetContextRef(); \
if(!context) UNLIKELY return detail_::DefaultVal<R>(); \
@@ -28,7 +28,7 @@ R AL_API Name(T1 a) START_API_FUNC \
} END_API_FUNC
#define DECL_FUNC2(R, Name, T1, T2) \
-R AL_API Name(T1 a, T2 b) START_API_FUNC \
+R AL_APIENTRY Name(T1 a, T2 b) START_API_FUNC \
{ \
auto context = GetContextRef(); \
if(!context) UNLIKELY return detail_::DefaultVal<R>(); \
@@ -36,7 +36,7 @@ R AL_API Name(T1 a, T2 b) START_API_FUNC \
} END_API_FUNC
#define DECL_FUNC3(R, Name, T1, T2, T3) \
-R AL_API Name(T1 a, T2 b, T3 c) START_API_FUNC \
+R AL_APIENTRY Name(T1 a, T2 b, T3 c) START_API_FUNC \
{ \
auto context = GetContextRef(); \
if(!context) UNLIKELY return detail_::DefaultVal<R>(); \
@@ -44,7 +44,7 @@ R AL_API Name(T1 a, T2 b, T3 c) START_API_FUNC \
} END_API_FUNC
#define DECL_FUNC4(R, Name, T1, T2, T3, T4) \
-R AL_API Name(T1 a, T2 b, T3 c, T4 d) START_API_FUNC \
+R AL_APIENTRY Name(T1 a, T2 b, T3 c, T4 d) START_API_FUNC \
{ \
auto context = GetContextRef(); \
if(!context) UNLIKELY return detail_::DefaultVal<R>(); \
@@ -52,7 +52,7 @@ R AL_API Name(T1 a, T2 b, T3 c, T4 d) START_API_FUNC \
} END_API_FUNC
#define DECL_FUNC5(R, Name, T1, T2, T3, T4, T5) \
-R AL_API Name(T1 a, T2 b, T3 c, T4 d, T5 e) START_API_FUNC \
+R AL_APIENTRY Name(T1 a, T2 b, T3 c, T4 d, T5 e) START_API_FUNC \
{ \
auto context = GetContextRef(); \
if(!context) UNLIKELY return detail_::DefaultVal<R>(); \
@@ -61,7 +61,7 @@ R AL_API Name(T1 a, T2 b, T3 c, T4 d, T5 e) START_API_FUNC \
#define DECL_FUNCEXT(R, Name,Ext) \
-R AL_API Name##Ext(void) START_API_FUNC \
+R AL_APIENTRY Name##Ext(void) START_API_FUNC \
{ \
auto context = GetContextRef(); \
if(!context) UNLIKELY return detail_::DefaultVal<R>(); \
@@ -69,7 +69,7 @@ R AL_API Name##Ext(void) START_API_FUNC \
} END_API_FUNC
#define DECL_FUNCEXT1(R, Name,Ext, T1) \
-R AL_API Name##Ext(T1 a) START_API_FUNC \
+R AL_APIENTRY Name##Ext(T1 a) START_API_FUNC \
{ \
auto context = GetContextRef(); \
if(!context) UNLIKELY return detail_::DefaultVal<R>(); \
@@ -77,7 +77,7 @@ R AL_API Name##Ext(T1 a) START_API_FUNC \
} END_API_FUNC
#define DECL_FUNCEXT2(R, Name,Ext, T1, T2) \
-R AL_API Name##Ext(T1 a, T2 b) START_API_FUNC \
+R AL_APIENTRY Name##Ext(T1 a, T2 b) START_API_FUNC \
{ \
auto context = GetContextRef(); \
if(!context) UNLIKELY return detail_::DefaultVal<R>(); \
@@ -85,7 +85,7 @@ R AL_API Name##Ext(T1 a, T2 b) START_API_FUNC \
} END_API_FUNC
#define DECL_FUNCEXT3(R, Name,Ext, T1, T2, T3) \
-R AL_API Name##Ext(T1 a, T2 b, T3 c) START_API_FUNC \
+R AL_APIENTRY Name##Ext(T1 a, T2 b, T3 c) START_API_FUNC \
{ \
auto context = GetContextRef(); \
if(!context) UNLIKELY return detail_::DefaultVal<R>(); \
@@ -93,7 +93,7 @@ R AL_API Name##Ext(T1 a, T2 b, T3 c) START_API_FUNC \
} END_API_FUNC
#define DECL_FUNCEXT4(R, Name,Ext, T1, T2, T3, T4) \
-R AL_API Name##Ext(T1 a, T2 b, T3 c, T4 d) START_API_FUNC \
+R AL_APIENTRY Name##Ext(T1 a, T2 b, T3 c, T4 d) START_API_FUNC \
{ \
auto context = GetContextRef(); \
if(!context) UNLIKELY return detail_::DefaultVal<R>(); \
@@ -101,7 +101,7 @@ R AL_API Name##Ext(T1 a, T2 b, T3 c, T4 d) START_API_FUNC \
} END_API_FUNC
#define DECL_FUNCEXT5(R, Name,Ext, T1, T2, T3, T4, T5) \
-R AL_API Name##Ext(T1 a, T2 b, T3 c, T4 d, T5 e) START_API_FUNC \
+R AL_APIENTRY Name##Ext(T1 a, T2 b, T3 c, T4 d, T5 e) START_API_FUNC \
{ \
auto context = GetContextRef(); \
if(!context) UNLIKELY return detail_::DefaultVal<R>(); \
@@ -109,7 +109,7 @@ R AL_API Name##Ext(T1 a, T2 b, T3 c, T4 d, T5 e) START_API_FUNC \
} END_API_FUNC
#define DECL_FUNCEXT6(R, Name,Ext, T1, T2, T3, T4, T5, T6) \
-R AL_API Name##Ext(T1 a, T2 b, T3 c, T4 d, T5 e, T6 f) START_API_FUNC \
+R AL_APIENTRY Name##Ext(T1 a, T2 b, T3 c, T4 d, T5 e, T6 f) START_API_FUNC \
{ \
auto context = GetContextRef(); \
if(!context) UNLIKELY return detail_::DefaultVal<R>(); \
diff --git a/al/effect.cpp b/al/effect.cpp
index 9032fdb3..041f0a2e 100644
--- a/al/effect.cpp
+++ b/al/effect.cpp
@@ -494,17 +494,17 @@ FORCE_ALIGN void AL_APIENTRY alGetEffectfvDirect(ALCcontext *context, ALuint eff
}
}
-DECL_FUNC2(void, alGenEffects, ALsizei, ALuint*)
-DECL_FUNC2(void, alDeleteEffects, ALsizei, const ALuint*)
-DECL_FUNC1(ALboolean, alIsEffect, ALuint)
-DECL_FUNC3(void, alEffectf, ALuint, ALenum, ALfloat)
-DECL_FUNC3(void, alEffectfv, ALuint, ALenum, const ALfloat*)
-DECL_FUNC3(void, alEffecti, ALuint, ALenum, ALint)
-DECL_FUNC3(void, alEffectiv, ALuint, ALenum, const ALint*)
-DECL_FUNC3(void, alGetEffectf, ALuint, ALenum, ALfloat*)
-DECL_FUNC3(void, alGetEffectfv, ALuint, ALenum, ALfloat*)
-DECL_FUNC3(void, alGetEffecti, ALuint, ALenum, ALint*)
-DECL_FUNC3(void, alGetEffectiv, ALuint, ALenum, ALint*)
+AL_API DECL_FUNC2(void, alGenEffects, ALsizei, ALuint*)
+AL_API DECL_FUNC2(void, alDeleteEffects, ALsizei, const ALuint*)
+AL_API DECL_FUNC1(ALboolean, alIsEffect, ALuint)
+AL_API DECL_FUNC3(void, alEffectf, ALuint, ALenum, ALfloat)
+AL_API DECL_FUNC3(void, alEffectfv, ALuint, ALenum, const ALfloat*)
+AL_API DECL_FUNC3(void, alEffecti, ALuint, ALenum, ALint)
+AL_API DECL_FUNC3(void, alEffectiv, ALuint, ALenum, const ALint*)
+AL_API DECL_FUNC3(void, alGetEffectf, ALuint, ALenum, ALfloat*)
+AL_API DECL_FUNC3(void, alGetEffectfv, ALuint, ALenum, ALfloat*)
+AL_API DECL_FUNC3(void, alGetEffecti, ALuint, ALenum, ALint*)
+AL_API DECL_FUNC3(void, alGetEffectiv, ALuint, ALenum, ALint*)
void InitEffect(ALeffect *effect)
diff --git a/al/event.cpp b/al/event.cpp
index dffd76d0..f606f765 100644
--- a/al/event.cpp
+++ b/al/event.cpp
@@ -233,5 +233,5 @@ FORCE_ALIGN void AL_APIENTRY alEventCallbackDirectSOFT(ALCcontext *context,
context->mEventParam = userParam;
}
-DECL_FUNCEXT3(void, alEventControl,SOFT, ALsizei, const ALenum*, ALboolean)
-DECL_FUNCEXT2(void, alEventCallback,SOFT, ALEVENTPROCSOFT, void*)
+AL_API DECL_FUNCEXT3(void, alEventControl,SOFT, ALsizei, const ALenum*, ALboolean)
+AL_API DECL_FUNCEXT2(void, alEventCallback,SOFT, ALEVENTPROCSOFT, void*)
diff --git a/al/filter.cpp b/al/filter.cpp
index fb12ef48..4b927a9b 100644
--- a/al/filter.cpp
+++ b/al/filter.cpp
@@ -660,17 +660,17 @@ FORCE_ALIGN void AL_APIENTRY alGetFilterfvDirect(ALCcontext *context, ALuint fil
}
}
-DECL_FUNC2(void, alGenFilters, ALsizei, ALuint*)
-DECL_FUNC2(void, alDeleteFilters, ALsizei, const ALuint*)
-DECL_FUNC1(ALboolean, alIsFilter, ALuint)
-DECL_FUNC3(void, alFilterf, ALuint, ALenum, ALfloat)
-DECL_FUNC3(void, alFilterfv, ALuint, ALenum, const ALfloat*)
-DECL_FUNC3(void, alFilteri, ALuint, ALenum, ALint)
-DECL_FUNC3(void, alFilteriv, ALuint, ALenum, const ALint*)
-DECL_FUNC3(void, alGetFilterf, ALuint, ALenum, ALfloat*)
-DECL_FUNC3(void, alGetFilterfv, ALuint, ALenum, ALfloat*)
-DECL_FUNC3(void, alGetFilteri, ALuint, ALenum, ALint*)
-DECL_FUNC3(void, alGetFilteriv, ALuint, ALenum, ALint*)
+AL_API DECL_FUNC2(void, alGenFilters, ALsizei, ALuint*)
+AL_API DECL_FUNC2(void, alDeleteFilters, ALsizei, const ALuint*)
+AL_API DECL_FUNC1(ALboolean, alIsFilter, ALuint)
+AL_API DECL_FUNC3(void, alFilterf, ALuint, ALenum, ALfloat)
+AL_API DECL_FUNC3(void, alFilterfv, ALuint, ALenum, const ALfloat*)
+AL_API DECL_FUNC3(void, alFilteri, ALuint, ALenum, ALint)
+AL_API DECL_FUNC3(void, alFilteriv, ALuint, ALenum, const ALint*)
+AL_API DECL_FUNC3(void, alGetFilterf, ALuint, ALenum, ALfloat*)
+AL_API DECL_FUNC3(void, alGetFilterfv, ALuint, ALenum, ALfloat*)
+AL_API DECL_FUNC3(void, alGetFilteri, ALuint, ALenum, ALint*)
+AL_API DECL_FUNC3(void, alGetFilteriv, ALuint, ALenum, ALint*)
FilterSubList::~FilterSubList()
diff --git a/al/listener.cpp b/al/listener.cpp
index 25cb162e..f7e7d6f0 100644
--- a/al/listener.cpp
+++ b/al/listener.cpp
@@ -393,15 +393,15 @@ FORCE_ALIGN void AL_APIENTRY alGetListenerivDirect(ALCcontext *context, ALenum p
}
}
-DECL_FUNC2(void, alListenerf, ALenum, ALfloat)
-DECL_FUNC4(void, alListener3f, ALenum, ALfloat, ALfloat, ALfloat)
-DECL_FUNC2(void, alListenerfv, ALenum, const ALfloat*)
-DECL_FUNC2(void, alListeneri, ALenum, ALint)
-DECL_FUNC4(void, alListener3i, ALenum, ALint, ALint, ALint)
-DECL_FUNC2(void, alListeneriv, ALenum, const ALint*)
-DECL_FUNC2(void, alGetListenerf, ALenum, ALfloat*)
-DECL_FUNC4(void, alGetListener3f, ALenum, ALfloat*, ALfloat*, ALfloat*)
-DECL_FUNC2(void, alGetListenerfv, ALenum, ALfloat*)
-DECL_FUNC2(void, alGetListeneri, ALenum, ALint*)
-DECL_FUNC4(void, alGetListener3i, ALenum, ALint*, ALint*, ALint*)
-DECL_FUNC2(void, alGetListeneriv, ALenum, ALint*)
+AL_API DECL_FUNC2(void, alListenerf, ALenum, ALfloat)
+AL_API DECL_FUNC4(void, alListener3f, ALenum, ALfloat, ALfloat, ALfloat)
+AL_API DECL_FUNC2(void, alListenerfv, ALenum, const ALfloat*)
+AL_API DECL_FUNC2(void, alListeneri, ALenum, ALint)
+AL_API DECL_FUNC4(void, alListener3i, ALenum, ALint, ALint, ALint)
+AL_API DECL_FUNC2(void, alListeneriv, ALenum, const ALint*)
+AL_API DECL_FUNC2(void, alGetListenerf, ALenum, ALfloat*)
+AL_API DECL_FUNC4(void, alGetListener3f, ALenum, ALfloat*, ALfloat*, ALfloat*)
+AL_API DECL_FUNC2(void, alGetListenerfv, ALenum, ALfloat*)
+AL_API DECL_FUNC2(void, alGetListeneri, ALenum, ALint*)
+AL_API DECL_FUNC4(void, alGetListener3i, ALenum, ALint*, ALint*, ALint*)
+AL_API DECL_FUNC2(void, alGetListeneriv, ALenum, ALint*)
diff --git a/al/source.cpp b/al/source.cpp
index 8b73ddf0..0efc7fb9 100644
--- a/al/source.cpp
+++ b/al/source.cpp
@@ -3518,43 +3518,43 @@ FORCE_ALIGN void AL_APIENTRY alSourceUnqueueBuffersDirect(ALCcontext *context, A
}
-DECL_FUNC2(void, alGenSources, ALsizei, ALuint*)
-DECL_FUNC2(void, alDeleteSources, ALsizei, const ALuint*)
-DECL_FUNC1(ALboolean, alIsSource, ALuint)
-DECL_FUNC1(void, alSourcePlay, ALuint)
-DECL_FUNC1(void, alSourcePause, ALuint)
-DECL_FUNC1(void, alSourceStop, ALuint)
-DECL_FUNC1(void, alSourceRewind, ALuint)
-DECL_FUNC2(void, alSourcePlayv, ALsizei, const ALuint*)
-DECL_FUNC2(void, alSourcePausev, ALsizei, const ALuint*)
-DECL_FUNC2(void, alSourceStopv, ALsizei, const ALuint*)
-DECL_FUNC2(void, alSourceRewindv, ALsizei, const ALuint*)
-DECL_FUNC3(void, alSourcef, ALuint, ALenum, ALfloat)
-DECL_FUNC5(void, alSource3f, ALuint, ALenum, ALfloat, ALfloat, ALfloat)
-DECL_FUNC3(void, alSourcefv, ALuint, ALenum, const ALfloat*)
-DECL_FUNC3(void, alSourcei, ALuint, ALenum, ALint)
-DECL_FUNC5(void, alSource3i, ALuint, ALenum, ALint, ALint, ALint)
-DECL_FUNC3(void, alSourceiv, ALuint, ALenum, const ALint*)
-DECL_FUNCEXT3(void, alSourced,SOFT, ALuint, ALenum, ALdouble)
-DECL_FUNCEXT5(void, alSource3d,SOFT, ALuint, ALenum, ALdouble, ALdouble, ALdouble)
-DECL_FUNCEXT3(void, alSourcedv,SOFT, ALuint, ALenum, const ALdouble*)
-DECL_FUNCEXT3(void, alSourcei64,SOFT, ALuint, ALenum, ALint64SOFT)
-DECL_FUNCEXT5(void, alSource3i64,SOFT, ALuint, ALenum, ALint64SOFT, ALint64SOFT, ALint64SOFT)
-DECL_FUNCEXT3(void, alSourcei64v,SOFT, ALuint, ALenum, const ALint64SOFT*)
-DECL_FUNC3(void, alGetSourcef, ALuint, ALenum, ALfloat*)
-DECL_FUNC5(void, alGetSource3f, ALuint, ALenum, ALfloat*, ALfloat*, ALfloat*)
-DECL_FUNC3(void, alGetSourcefv, ALuint, ALenum, ALfloat*)
-DECL_FUNC3(void, alGetSourcei, ALuint, ALenum, ALint*)
-DECL_FUNC5(void, alGetSource3i, ALuint, ALenum, ALint*, ALint*, ALint*)
-DECL_FUNC3(void, alGetSourceiv, ALuint, ALenum, ALint*)
-DECL_FUNCEXT3(void, alGetSourced,SOFT, ALuint, ALenum, ALdouble*)
-DECL_FUNCEXT5(void, alGetSource3d,SOFT, ALuint, ALenum, ALdouble*, ALdouble*, ALdouble*)
-DECL_FUNCEXT3(void, alGetSourcedv,SOFT, ALuint, ALenum, ALdouble*)
-DECL_FUNCEXT3(void, alGetSourcei64,SOFT, ALuint, ALenum, ALint64SOFT*)
-DECL_FUNCEXT5(void, alGetSource3i64,SOFT, ALuint, ALenum, ALint64SOFT*, ALint64SOFT*, ALint64SOFT*)
-DECL_FUNCEXT3(void, alGetSourcei64v,SOFT, ALuint, ALenum, ALint64SOFT*)
-DECL_FUNC3(void, alSourceQueueBuffers, ALuint, ALsizei, const ALuint*)
-DECL_FUNC3(void, alSourceUnqueueBuffers, ALuint, ALsizei, ALuint*)
+AL_API DECL_FUNC2(void, alGenSources, ALsizei, ALuint*)
+AL_API DECL_FUNC2(void, alDeleteSources, ALsizei, const ALuint*)
+AL_API DECL_FUNC1(ALboolean, alIsSource, ALuint)
+AL_API DECL_FUNC1(void, alSourcePlay, ALuint)
+AL_API DECL_FUNC1(void, alSourcePause, ALuint)
+AL_API DECL_FUNC1(void, alSourceStop, ALuint)
+AL_API DECL_FUNC1(void, alSourceRewind, ALuint)
+AL_API DECL_FUNC2(void, alSourcePlayv, ALsizei, const ALuint*)
+AL_API DECL_FUNC2(void, alSourcePausev, ALsizei, const ALuint*)
+AL_API DECL_FUNC2(void, alSourceStopv, ALsizei, const ALuint*)
+AL_API DECL_FUNC2(void, alSourceRewindv, ALsizei, const ALuint*)
+AL_API DECL_FUNC3(void, alSourcef, ALuint, ALenum, ALfloat)
+AL_API DECL_FUNC5(void, alSource3f, ALuint, ALenum, ALfloat, ALfloat, ALfloat)
+AL_API DECL_FUNC3(void, alSourcefv, ALuint, ALenum, const ALfloat*)
+AL_API DECL_FUNC3(void, alSourcei, ALuint, ALenum, ALint)
+AL_API DECL_FUNC5(void, alSource3i, ALuint, ALenum, ALint, ALint, ALint)
+AL_API DECL_FUNC3(void, alSourceiv, ALuint, ALenum, const ALint*)
+AL_API DECL_FUNCEXT3(void, alSourced,SOFT, ALuint, ALenum, ALdouble)
+AL_API DECL_FUNCEXT5(void, alSource3d,SOFT, ALuint, ALenum, ALdouble, ALdouble, ALdouble)
+AL_API DECL_FUNCEXT3(void, alSourcedv,SOFT, ALuint, ALenum, const ALdouble*)
+AL_API DECL_FUNCEXT3(void, alSourcei64,SOFT, ALuint, ALenum, ALint64SOFT)
+AL_API DECL_FUNCEXT5(void, alSource3i64,SOFT, ALuint, ALenum, ALint64SOFT, ALint64SOFT, ALint64SOFT)
+AL_API DECL_FUNCEXT3(void, alSourcei64v,SOFT, ALuint, ALenum, const ALint64SOFT*)
+AL_API DECL_FUNC3(void, alGetSourcef, ALuint, ALenum, ALfloat*)
+AL_API DECL_FUNC5(void, alGetSource3f, ALuint, ALenum, ALfloat*, ALfloat*, ALfloat*)
+AL_API DECL_FUNC3(void, alGetSourcefv, ALuint, ALenum, ALfloat*)
+AL_API DECL_FUNC3(void, alGetSourcei, ALuint, ALenum, ALint*)
+AL_API DECL_FUNC5(void, alGetSource3i, ALuint, ALenum, ALint*, ALint*, ALint*)
+AL_API DECL_FUNC3(void, alGetSourceiv, ALuint, ALenum, ALint*)
+AL_API DECL_FUNCEXT3(void, alGetSourced,SOFT, ALuint, ALenum, ALdouble*)
+AL_API DECL_FUNCEXT5(void, alGetSource3d,SOFT, ALuint, ALenum, ALdouble*, ALdouble*, ALdouble*)
+AL_API DECL_FUNCEXT3(void, alGetSourcedv,SOFT, ALuint, ALenum, ALdouble*)
+AL_API DECL_FUNCEXT3(void, alGetSourcei64,SOFT, ALuint, ALenum, ALint64SOFT*)
+AL_API DECL_FUNCEXT5(void, alGetSource3i64,SOFT, ALuint, ALenum, ALint64SOFT*, ALint64SOFT*, ALint64SOFT*)
+AL_API DECL_FUNCEXT3(void, alGetSourcei64v,SOFT, ALuint, ALenum, ALint64SOFT*)
+AL_API DECL_FUNC3(void, alSourceQueueBuffers, ALuint, ALsizei, const ALuint*)
+AL_API DECL_FUNC3(void, alSourceUnqueueBuffers, ALuint, ALsizei, ALuint*)
FORCE_ALIGN void AL_APIENTRY alSourcePlayAtTimeSOFT(ALuint source, ALint64SOFT time) START_API_FUNC
{
auto context = GetContextRef();
diff --git a/al/state.cpp b/al/state.cpp
index 2367dbe4..60d18818 100644
--- a/al/state.cpp
+++ b/al/state.cpp
@@ -380,16 +380,14 @@ FORCE_ALIGN ALboolean AL_APIENTRY alIsEnabledDirect(ALCcontext *context, ALenum
}
#define DECL_GETFUNC(R, Name, Ext) \
-AL_API R AL_APIENTRY Name##Ext(ALenum pname) \
-START_API_FUNC \
+AL_API R AL_APIENTRY Name##Ext(ALenum pname) START_API_FUNC \
{ \
R value{}; \
auto context = GetContextRef(); \
if(!context) UNLIKELY return value; \
Name##vDirect##Ext(GetContextRef().get(), pname, &value); \
return value; \
-} \
-END_API_FUNC \
+} END_API_FUNC \
FORCE_ALIGN R AL_APIENTRY Name##Direct##Ext(ALCcontext *context, ALenum pname) noexcept \
{ \
R value{}; \
@@ -616,8 +614,7 @@ AL_API DECL_FUNCEXT(void, alDeferUpdates,SOFT)
AL_API DECL_FUNCEXT(void, alProcessUpdates,SOFT)
AL_API DECL_FUNCEXT2(const ALchar*, alGetStringi,SOFT, ALenum,ALsizei)
-AL_API void AL_APIENTRY alDopplerVelocity(ALfloat value)
-START_API_FUNC
+AL_API void AL_APIENTRY alDopplerVelocity(ALfloat value) START_API_FUNC
{
ContextRef context{GetContextRef()};
if(!context) UNLIKELY return;
@@ -636,8 +633,7 @@ START_API_FUNC
context->mDopplerVelocity = value;
UpdateProps(context.get());
}
-}
-END_API_FUNC
+} END_API_FUNC
void UpdateContextProps(ALCcontext *context)