aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/backends/base.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2013-10-28 12:05:33 -0700
committerChris Robinson <[email protected]>2013-10-28 12:05:33 -0700
commitf24cb447818ea21ff5a5d80d6396abb4723fd2ed (patch)
tree3f10c96f9e11d1f0dd58501f166ba399ebdbeda8 /Alc/backends/base.h
parent2912d130c26056f21e938bbd776bbe8583c055cd (diff)
Move the device mutex to the backend
Diffstat (limited to 'Alc/backends/base.h')
-rw-r--r--Alc/backends/base.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Alc/backends/base.h b/Alc/backends/base.h
index 272a3f65..22602b23 100644
--- a/Alc/backends/base.h
+++ b/Alc/backends/base.h
@@ -2,6 +2,7 @@
#define AL_BACKENDS_BASE_H
#include "alMain.h"
+#include "compat.h"
struct ALCbackendVtable;
@@ -10,8 +11,12 @@ typedef struct ALCbackend {
const struct ALCbackendVtable *vtbl;
ALCdevice *mDevice;
+
+ CRITICAL_SECTION mMutex;
} ALCbackend;
+void ALCbackend_Construct(ALCbackend *self, ALCdevice *device);
+void ALCbackend_Destruct(ALCbackend *self);
ALint64 ALCbackend_getLatency(ALCbackend *self);
void ALCbackend_lock(ALCbackend *self);
void ALCbackend_unlock(ALCbackend *self);