diff options
author | Chris Robinson <[email protected]> | 2018-01-23 17:42:39 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-01-23 17:42:39 -0800 |
commit | 2266a9e01ef68f112e87eb49bf1621a6456531a9 (patch) | |
tree | 0ea9fa5adf0aa0f644ab0a62fe4a6fb46c72bfa7 /OpenAL32/Include/alMain.h | |
parent | def2547e4078cd92c86bb5225e1e2cc498a73778 (diff) |
Declare the beginnings of an event extension
Diffstat (limited to 'OpenAL32/Include/alMain.h')
-rw-r--r-- | OpenAL32/Include/alMain.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index 17bff871..4b0f3b81 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -66,6 +66,29 @@ AL_API void AL_APIENTRY alFlushMappedBufferSOFT(ALuint buffer, ALsizei offset, A #endif #endif +#ifndef AL_SOFT_events +#define AL_SOFT_events 1 +#define AL_EVENT_CALLBACK_FUNCTION_SOFT 0xffe0 +#define AL_EVENT_CALLBACK_USER_PARAM_SOFT 0xffe1 +#define AL_EVENT_TYPE_BUFFER_COMPLETED_SOFT 0xffe2 +#define AL_EVENT_TYPE_SOURCE_STATE_CHANGED_SOFT 0xffe3 +#define AL_EVENT_TYPE_ERROR_SOFT 0xffe4 +#define AL_EVENT_TYPE_PERFORMANCE_SOFT 0xffe5 +typedef void (AL_APIENTRY*ALEVENTPROCSOFT)(ALenum eventType, ALuint object, ALuint param, + ALsizei length, const ALchar *message, + void *userParam); +typedef void (AL_APIENTRY*LPALEVENTCONTROLSOFT)(ALsizei count, const ALenum *types, ALboolean enable); +typedef void (AL_APIENTRY*LPALEVENTCALLBACKSOFT)(ALEVENTPROCSOFT callback, void *userParam); +typedef void* (AL_APIENTRY*LPALGETPOINTERSOFT)(ALenum pname); +typedef void (AL_APIENTRY*LPALGETPOINTERVSOFT)(ALenum pname, void **params); +#ifdef AL_ALEXT_PROTOTYPES +AL_API void AL_APIENTRY alEventControlSOFT(ALsizei count, const ALenum *types, ALboolean enable); +AL_API void AL_APIENTRY alEventCallbackSOFT(ALEVENTPROCSOFT callback, void *userParam); +AL_API void* AL_APIENTRY alGetPointerSOFT(ALenum pname); +AL_API void AL_APIENTRY alGetPointervSOFT(ALenum pname, void **params); +#endif +#endif + #if defined(_WIN64) #define SZFMT "%I64u" |