diff options
author | Chris Robinson <[email protected]> | 2017-07-07 18:33:54 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2017-07-07 18:33:54 -0700 |
commit | 6be752a9b1a38379b8631c5dcb6c47e099af4f02 (patch) | |
tree | b22d581ed2fd98fbd12526d2af005c6517f110c4 /router/router.h | |
parent | faefa1d55479a5d5a05ddb18f6b9051634adec3d (diff) |
Add methods for thread-local contexts to the router
Diffstat (limited to 'router/router.h')
-rw-r--r-- | router/router.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/router/router.h b/router/router.h index 0749ffad..ee885d85 100644 --- a/router/router.h +++ b/router/router.h @@ -9,6 +9,7 @@ #include "AL/alc.h" #include "AL/al.h" +#include "AL/alext.h" #include "atomic.h" #include "rwlock.h" #include "threads.h" @@ -54,6 +55,9 @@ typedef struct DriverIface { LPALCCAPTURESTOP alcCaptureStop; LPALCCAPTURESAMPLES alcCaptureSamples; + PFNALCSETTHREADCONTEXTPROC alcSetThreadContext; + PFNALCGETTHREADCONTEXTPROC alcGetThreadContext; + LPALENABLE alEnable; LPALDISABLE alDisable; LPALISENABLED alIsEnabled; @@ -132,6 +136,7 @@ typedef struct DriverIface { extern DriverIface *DriverList; extern int DriverListSize; +extern altss_t ThreadCtxDriver; extern ATOMIC(DriverIface*) CurrentCtxDriver; |