From 9d43b548cc982d6ac90ccad82990f96622e74308 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 15 Nov 2018 21:33:44 -0800 Subject: Convert the ALSA backend factory --- Alc/backends/alsa.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Alc/backends/alsa.h (limited to 'Alc/backends/alsa.h') diff --git a/Alc/backends/alsa.h b/Alc/backends/alsa.h new file mode 100644 index 00000000..3f772115 --- /dev/null +++ b/Alc/backends/alsa.h @@ -0,0 +1,20 @@ +#ifndef BACKENDS_ALSA_H +#define BACKENDS_ALSA_H + +#include "backends/base.h" + +struct AlsaBackendFactory 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_ALSA_H */ -- cgit v1.2.3