aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-08-29 13:22:07 -0700
committerChris Robinson <[email protected]>2011-08-29 13:22:07 -0700
commit72beb577b6190d9df0426825f131a5c8624aaeec (patch)
treefbc6653d88aee582cc7a5751ecc48762c82fa544 /OpenAL32/Include
parentde65ee08c9c3b2261b8329d45cb57b4b4e5cb6a1 (diff)
Lock the context as needed for the defer and process calls
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r--OpenAL32/Include/alMain.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h
index b0a33114..a9f5813d 100644
--- a/OpenAL32/Include/alMain.h
+++ b/OpenAL32/Include/alMain.h
@@ -571,6 +571,9 @@ struct ALCcontext_struct
ALCcontext *next;
};
+void ALCcontext_IncRef(ALCcontext *context);
+void ALCcontext_DecRef(ALCcontext *context);
+
void AppendDeviceList(const ALCchar *name);
void AppendAllDeviceList(const ALCchar *name);
void AppendCaptureDeviceList(const ALCchar *name);
@@ -586,6 +589,7 @@ ALvoid *StartThread(ALuint (*func)(ALvoid*), ALvoid *ptr);
ALuint StopThread(ALvoid *thread);
ALCcontext *GetLockedContext(void);
+ALCcontext *GetReffedContext(void);
typedef struct RingBuffer RingBuffer;
RingBuffer *CreateRingBuffer(ALsizei frame_size, ALsizei length);