diff options
-rw-r--r-- | alc/alc.cpp | 2 | ||||
-rw-r--r-- | alc/context.cpp | 2 | ||||
-rw-r--r-- | alc/inprogext.h | 66 | ||||
-rw-r--r-- | include/AL/alext.h | 66 |
4 files changed, 68 insertions, 68 deletions
diff --git a/alc/alc.cpp b/alc/alc.cpp index 45a55793..b2a5355a 100644 --- a/alc/alc.cpp +++ b/alc/alc.cpp @@ -312,7 +312,7 @@ constexpr ALCchar alcExtensionList[] = "ALC_ENUMERATE_ALL_EXT " "ALC_ENUMERATION_EXT " "ALC_EXT_CAPTURE " - "ALC_EXTX_debug " + "ALC_EXT_debug " "ALC_EXT_DEDICATED " "ALC_EXTX_direct_context " "ALC_EXT_disconnect " diff --git a/alc/context.cpp b/alc/context.cpp index 142ad50c..9c5a62c4 100644 --- a/alc/context.cpp +++ b/alc/context.cpp @@ -53,7 +53,7 @@ std::vector<std::string_view> getContextExtensions() noexcept return std::vector<std::string_view>{ "AL_EXT_ALAW", "AL_EXT_BFORMAT", - "AL_EXTX_debug", + "AL_EXT_debug", "AL_EXTX_direct_context", "AL_EXT_DOUBLE", "AL_EXT_EXPONENT_DISTANCE", diff --git a/alc/inprogext.h b/alc/inprogext.h index dc1744ee..739af517 100644 --- a/alc/inprogext.h +++ b/alc/inprogext.h @@ -62,72 +62,6 @@ AL_API void AL_APIENTRY alAuxiliaryEffectSlotStopvSOFT(ALsizei n, const ALuint * #define AL_STOP_SOURCES_ON_DISCONNECT_SOFT 0x19AB #endif -#ifndef ALC_EXT_debug -#define ALC_EXT_debug -#define ALC_CONTEXT_FLAGS_EXT 0x19CE -#define ALC_CONTEXT_DEBUG_BIT_EXT 0x0001 -#endif - -#ifndef AL_EXT_debug -#define AL_EXT_debug -#define AL_DONT_CARE_EXT 0x0002 -#define AL_DEBUG_OUTPUT_EXT 0x19B2 -#define AL_DEBUG_CALLBACK_FUNCTION_EXT 0x19B3 -#define AL_DEBUG_CALLBACK_USER_PARAM_EXT 0x19B4 -#define AL_DEBUG_SOURCE_API_EXT 0x19B5 -#define AL_DEBUG_SOURCE_AUDIO_SYSTEM_EXT 0x19B6 -#define AL_DEBUG_SOURCE_THIRD_PARTY_EXT 0x19B7 -#define AL_DEBUG_SOURCE_APPLICATION_EXT 0x19B8 -#define AL_DEBUG_SOURCE_OTHER_EXT 0x19B9 -#define AL_DEBUG_TYPE_ERROR_EXT 0x19BA -#define AL_DEBUG_TYPE_DEPRECATED_BEHAVIOR_EXT 0x19BB -#define AL_DEBUG_TYPE_UNDEFINED_BEHAVIOR_EXT 0x19BC -#define AL_DEBUG_TYPE_PORTABILITY_EXT 0x19BD -#define AL_DEBUG_TYPE_PERFORMANCE_EXT 0x19BE -#define AL_DEBUG_TYPE_MARKER_EXT 0x19BF -#define AL_DEBUG_TYPE_PUSH_GROUP_EXT 0x19C0 -#define AL_DEBUG_TYPE_POP_GROUP_EXT 0x19C1 -#define AL_DEBUG_TYPE_OTHER_EXT 0x19C2 -#define AL_DEBUG_SEVERITY_HIGH_EXT 0x19C3 -#define AL_DEBUG_SEVERITY_MEDIUM_EXT 0x19C4 -#define AL_DEBUG_SEVERITY_LOW_EXT 0x19C5 -#define AL_DEBUG_SEVERITY_NOTIFICATION_EXT 0x19C6 -#define AL_DEBUG_LOGGED_MESSAGES_EXT 0x19C7 -#define AL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH_EXT 0x19C8 -#define AL_MAX_DEBUG_MESSAGE_LENGTH_EXT 0x19C9 -#define AL_MAX_DEBUG_LOGGED_MESSAGES_EXT 0x19CA -#define AL_MAX_DEBUG_GROUP_STACK_DEPTH_EXT 0x19CB -#define AL_MAX_LABEL_LENGTH_EXT 0x19CC -#define AL_STACK_OVERFLOW_EXT 0x19CD -#define AL_STACK_UNDERFLOW_EXT 0x19CE -#define AL_CONTEXT_FLAGS_EXT 0x19CF -#define AL_BUFFER_EXT 0x1009 /* Same as AL_BUFFER */ -#define AL_SOURCE_EXT 0x19D0 -#define AL_FILTER_EXT 0x19D1 -#define AL_EFFECT_EXT 0x19D2 -#define AL_AUXILIARY_EFFECT_SLOT_EXT 0x19D3 - -typedef void (AL_APIENTRY*ALDEBUGPROCEXT)(ALenum source, ALenum type, ALuint id, ALenum severity, ALsizei length, const ALchar *message, void *userParam) AL_API_NOEXCEPT17; -typedef void (AL_APIENTRY*LPALDEBUGMESSAGECALLBACKEXT)(ALDEBUGPROCEXT callback, void *userParam) AL_API_NOEXCEPT17; -typedef void (AL_APIENTRY*LPALDEBUGMESSAGEINSERTEXT)(ALenum source, ALenum type, ALuint id, ALenum severity, ALsizei length, const ALchar *message) AL_API_NOEXCEPT17; -typedef void (AL_APIENTRY*LPALDEBUGMESSAGECONTROLEXT)(ALenum source, ALenum type, ALenum severity, ALsizei count, const ALuint *ids, ALboolean enable) AL_API_NOEXCEPT17; -typedef void (AL_APIENTRY*LPALPUSHDEBUGGROUPEXT)(ALenum source, ALuint id, ALsizei length, const ALchar *message) AL_API_NOEXCEPT17; -typedef void (AL_APIENTRY*LPALPOPDEBUGGROUPEXT)(void) AL_API_NOEXCEPT17; -typedef ALuint (AL_APIENTRY*LPALGETDEBUGMESSAGELOGEXT)(ALuint count, ALsizei logBufSize, ALenum *sources, ALenum *types, ALuint *ids, ALenum *severities, ALsizei *lengths, ALchar *logBuf) AL_API_NOEXCEPT17; -typedef void (AL_APIENTRY*LPALOBJECTLABELEXT)(ALenum identifier, ALuint name, ALsizei length, const ALchar *label) AL_API_NOEXCEPT17; -typedef void (AL_APIENTRY*LPALGETOBJECTLABELEXT)(ALenum identifier, ALuint name, ALsizei bufSize, ALsizei *length, ALchar *label) AL_API_NOEXCEPT17; -#ifdef AL_ALEXT_PROTOTYPES -void AL_APIENTRY alDebugMessageCallbackEXT(ALDEBUGPROCEXT callback, void *userParam) AL_API_NOEXCEPT; -void AL_APIENTRY alDebugMessageInsertEXT(ALenum source, ALenum type, ALuint id, ALenum severity, ALsizei length, const ALchar *message) AL_API_NOEXCEPT; -void AL_APIENTRY alDebugMessageControlEXT(ALenum source, ALenum type, ALenum severity, ALsizei count, const ALuint *ids, ALboolean enable) AL_API_NOEXCEPT; -void AL_APIENTRY alPushDebugGroupEXT(ALenum source, ALuint id, ALsizei length, const ALchar *message) AL_API_NOEXCEPT; -void AL_APIENTRY alPopDebugGroupEXT(void) AL_API_NOEXCEPT; -ALuint AL_APIENTRY alGetDebugMessageLogEXT(ALuint count, ALsizei logBufSize, ALenum *sources, ALenum *types, ALuint *ids, ALenum *severities, ALsizei *lengths, ALchar *logBuf) AL_API_NOEXCEPT; -void AL_APIENTRY alObjectLabelEXT(ALenum identifier, ALuint name, ALsizei length, const ALchar *label) AL_API_NOEXCEPT; -void AL_APIENTRY alGetObjectLabelEXT(ALenum identifier, ALuint name, ALsizei bufSize, ALsizei *length, ALchar *label) AL_API_NOEXCEPT; -#endif -#endif - #ifndef AL_EXT_direct_context #define AL_EXT_direct_context diff --git a/include/AL/alext.h b/include/AL/alext.h index c4f4d4b2..7ac09010 100644 --- a/include/AL/alext.h +++ b/include/AL/alext.h @@ -647,6 +647,72 @@ void AL_APIENTRY alSourcePlayAtTimevSOFT(ALsizei n, const ALuint *sources, ALint #endif #endif +#ifndef ALC_EXT_debug +#define ALC_EXT_debug +#define ALC_CONTEXT_FLAGS_EXT 0x19CE +#define ALC_CONTEXT_DEBUG_BIT_EXT 0x0001 +#endif + +#ifndef AL_EXT_debug +#define AL_EXT_debug +#define AL_DONT_CARE_EXT 0x0002 +#define AL_DEBUG_OUTPUT_EXT 0x19B2 +#define AL_DEBUG_CALLBACK_FUNCTION_EXT 0x19B3 +#define AL_DEBUG_CALLBACK_USER_PARAM_EXT 0x19B4 +#define AL_DEBUG_SOURCE_API_EXT 0x19B5 +#define AL_DEBUG_SOURCE_AUDIO_SYSTEM_EXT 0x19B6 +#define AL_DEBUG_SOURCE_THIRD_PARTY_EXT 0x19B7 +#define AL_DEBUG_SOURCE_APPLICATION_EXT 0x19B8 +#define AL_DEBUG_SOURCE_OTHER_EXT 0x19B9 +#define AL_DEBUG_TYPE_ERROR_EXT 0x19BA +#define AL_DEBUG_TYPE_DEPRECATED_BEHAVIOR_EXT 0x19BB +#define AL_DEBUG_TYPE_UNDEFINED_BEHAVIOR_EXT 0x19BC +#define AL_DEBUG_TYPE_PORTABILITY_EXT 0x19BD +#define AL_DEBUG_TYPE_PERFORMANCE_EXT 0x19BE +#define AL_DEBUG_TYPE_MARKER_EXT 0x19BF +#define AL_DEBUG_TYPE_PUSH_GROUP_EXT 0x19C0 +#define AL_DEBUG_TYPE_POP_GROUP_EXT 0x19C1 +#define AL_DEBUG_TYPE_OTHER_EXT 0x19C2 +#define AL_DEBUG_SEVERITY_HIGH_EXT 0x19C3 +#define AL_DEBUG_SEVERITY_MEDIUM_EXT 0x19C4 +#define AL_DEBUG_SEVERITY_LOW_EXT 0x19C5 +#define AL_DEBUG_SEVERITY_NOTIFICATION_EXT 0x19C6 +#define AL_DEBUG_LOGGED_MESSAGES_EXT 0x19C7 +#define AL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH_EXT 0x19C8 +#define AL_MAX_DEBUG_MESSAGE_LENGTH_EXT 0x19C9 +#define AL_MAX_DEBUG_LOGGED_MESSAGES_EXT 0x19CA +#define AL_MAX_DEBUG_GROUP_STACK_DEPTH_EXT 0x19CB +#define AL_MAX_LABEL_LENGTH_EXT 0x19CC +#define AL_STACK_OVERFLOW_EXT 0x19CD +#define AL_STACK_UNDERFLOW_EXT 0x19CE +#define AL_CONTEXT_FLAGS_EXT 0x19CF +#define AL_BUFFER_EXT 0x1009 /* Same as AL_BUFFER */ +#define AL_SOURCE_EXT 0x19D0 +#define AL_FILTER_EXT 0x19D1 +#define AL_EFFECT_EXT 0x19D2 +#define AL_AUXILIARY_EFFECT_SLOT_EXT 0x19D3 + +typedef void (AL_APIENTRY*ALDEBUGPROCEXT)(ALenum source, ALenum type, ALuint id, ALenum severity, ALsizei length, const ALchar *message, void *userParam) AL_API_NOEXCEPT17; +typedef void (AL_APIENTRY*LPALDEBUGMESSAGECALLBACKEXT)(ALDEBUGPROCEXT callback, void *userParam) AL_API_NOEXCEPT17; +typedef void (AL_APIENTRY*LPALDEBUGMESSAGEINSERTEXT)(ALenum source, ALenum type, ALuint id, ALenum severity, ALsizei length, const ALchar *message) AL_API_NOEXCEPT17; +typedef void (AL_APIENTRY*LPALDEBUGMESSAGECONTROLEXT)(ALenum source, ALenum type, ALenum severity, ALsizei count, const ALuint *ids, ALboolean enable) AL_API_NOEXCEPT17; +typedef void (AL_APIENTRY*LPALPUSHDEBUGGROUPEXT)(ALenum source, ALuint id, ALsizei length, const ALchar *message) AL_API_NOEXCEPT17; +typedef void (AL_APIENTRY*LPALPOPDEBUGGROUPEXT)(void) AL_API_NOEXCEPT17; +typedef ALuint (AL_APIENTRY*LPALGETDEBUGMESSAGELOGEXT)(ALuint count, ALsizei logBufSize, ALenum *sources, ALenum *types, ALuint *ids, ALenum *severities, ALsizei *lengths, ALchar *logBuf) AL_API_NOEXCEPT17; +typedef void (AL_APIENTRY*LPALOBJECTLABELEXT)(ALenum identifier, ALuint name, ALsizei length, const ALchar *label) AL_API_NOEXCEPT17; +typedef void (AL_APIENTRY*LPALGETOBJECTLABELEXT)(ALenum identifier, ALuint name, ALsizei bufSize, ALsizei *length, ALchar *label) AL_API_NOEXCEPT17; +#ifdef AL_ALEXT_PROTOTYPES +void AL_APIENTRY alDebugMessageCallbackEXT(ALDEBUGPROCEXT callback, void *userParam) AL_API_NOEXCEPT; +void AL_APIENTRY alDebugMessageInsertEXT(ALenum source, ALenum type, ALuint id, ALenum severity, ALsizei length, const ALchar *message) AL_API_NOEXCEPT; +void AL_APIENTRY alDebugMessageControlEXT(ALenum source, ALenum type, ALenum severity, ALsizei count, const ALuint *ids, ALboolean enable) AL_API_NOEXCEPT; +void AL_APIENTRY alPushDebugGroupEXT(ALenum source, ALuint id, ALsizei length, const ALchar *message) AL_API_NOEXCEPT; +void AL_APIENTRY alPopDebugGroupEXT(void) AL_API_NOEXCEPT; +ALuint AL_APIENTRY alGetDebugMessageLogEXT(ALuint count, ALsizei logBufSize, ALenum *sources, ALenum *types, ALuint *ids, ALenum *severities, ALsizei *lengths, ALchar *logBuf) AL_API_NOEXCEPT; +void AL_APIENTRY alObjectLabelEXT(ALenum identifier, ALuint name, ALsizei length, const ALchar *label) AL_API_NOEXCEPT; +void AL_APIENTRY alGetObjectLabelEXT(ALenum identifier, ALuint name, ALsizei bufSize, ALsizei *length, ALchar *label) AL_API_NOEXCEPT; +#endif +#endif + #ifdef __cplusplus } #endif |