aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/backends/sdl2.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-11-15 22:15:10 -0800
committerChris Robinson <[email protected]>2018-11-15 22:15:10 -0800
commitd73d01548d992f6f683f6685ff8f4767e8843ad9 (patch)
treedb48d897927fd2d48de1b3c163593561d369c6f1 /Alc/backends/sdl2.h
parent2a839e5762fa6bd4b0399e2f588ce0805e92b618 (diff)
Convert the SDL2 backend factory
Diffstat (limited to 'Alc/backends/sdl2.h')
-rw-r--r--Alc/backends/sdl2.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/Alc/backends/sdl2.h b/Alc/backends/sdl2.h
new file mode 100644
index 00000000..7f383447
--- /dev/null
+++ b/Alc/backends/sdl2.h
@@ -0,0 +1,20 @@
+#ifndef BACKENDS_SDL2_H
+#define BACKENDS_SDL2_H
+
+#include "backends/base.h"
+
+struct SDL2BackendFactory final : public BackendFactory {
+public:
+ bool init() override;
+ void deinit() override;
+
+ bool querySupport(ALCbackend_Type type) override;
+
+ void probe(enum DevProbe type, std::string *outnames) override;
+
+ ALCbackend *createBackend(ALCdevice *device, ALCbackend_Type type) override;
+
+ static BackendFactory &getFactory();
+};
+
+#endif /* BACKENDS_SDL2_H */