diff options
author | Chris Robinson <[email protected]> | 2011-08-29 13:22:07 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-08-29 13:22:07 -0700 |
commit | 72beb577b6190d9df0426825f131a5c8624aaeec (patch) | |
tree | fbc6653d88aee582cc7a5751ecc48762c82fa544 /OpenAL32/Include/alMain.h | |
parent | de65ee08c9c3b2261b8329d45cb57b4b4e5cb6a1 (diff) |
Lock the context as needed for the defer and process calls
Diffstat (limited to 'OpenAL32/Include/alMain.h')
-rw-r--r-- | OpenAL32/Include/alMain.h | 4 |
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); |