aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-08-11 13:11:42 -0700
committerChris Robinson <[email protected]>2023-08-11 13:11:42 -0700
commit3b7e3a164fa0ea734308f1db69c8537ac4bab4d2 (patch)
treec67e3ba4a6bbc533277daa29e91d708c100c9cd4 /include
parent188a637c70019108d980f72b8521673b5648d19e (diff)
Make AL(C)_EXT_debug public
Diffstat (limited to 'include')
-rw-r--r--include/AL/alext.h66
1 files changed, 66 insertions, 0 deletions
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