aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/backends/base.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2013-10-29 10:38:55 -0700
committerChris Robinson <[email protected]>2013-10-29 10:38:55 -0700
commitd2b36159431789d6934f5569e54982d7c54c4e84 (patch)
tree4b29971d48fc06a49c4003d959ca3c33375cc976 /Alc/backends/base.h
parent3437769ba0e00fcc6f831f62e096b0be5fe565ab (diff)
Convert the loopback backend to the new interface
Diffstat (limited to 'Alc/backends/base.h')
-rw-r--r--Alc/backends/base.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/Alc/backends/base.h b/Alc/backends/base.h
index 90c4d30f..a8917bec 100644
--- a/Alc/backends/base.h
+++ b/Alc/backends/base.h
@@ -42,6 +42,9 @@ struct ALCbackendVtable {
void (*const Delete)(ALCbackend*);
};
+#define DECLARE_ALCBACKEND_VTABLE(T) \
+static const struct ALCbackendVtable T##_ALCbackend_vtable
+
#define DEFINE_ALCBACKEND_VTABLE(T) \
static void T##_ALCbackend_Destruct(ALCbackend *obj) \
{ T##_Destruct(STATIC_UPCAST(T, ALCbackend, obj)); } \
@@ -68,7 +71,7 @@ static void T##_ALCbackend_unlock(ALCbackend *obj) \
static void T##_ALCbackend_Delete(ALCbackend *obj) \
{ T##_Delete(STATIC_UPCAST(T, ALCbackend, obj)); } \
\
-static const struct ALCbackendVtable T##_ALCbackend_vtable = { \
+DECLARE_ALCBACKEND_VTABLE(T) = { \
T##_ALCbackend_Destruct, \
\
T##_ALCbackend_open, \
@@ -132,6 +135,7 @@ static const struct ALCbackendFactoryVtable T##_ALCbackendFactory_vtable = { \
ALCbackendFactory *ALCalsaBackendFactory_getFactory(void);
ALCbackendFactory *ALCnullBackendFactory_getFactory(void);
+ALCbackendFactory *ALCloopbackFactory_getFactory(void);
ALCbackend *create_backend_wrapper(ALCdevice *device, ALCbackend_Type type);