diff options
author | Chris Robinson <[email protected]> | 2018-11-15 19:15:14 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-11-15 19:15:14 -0800 |
commit | 49d8ac2537a03dd8d1a60fa4667dc6090da6bcc5 (patch) | |
tree | 5048ff5edf738dbde52f4d6f5075fe5dd9c9369d /Alc/backends/null.h | |
parent | 7c933087718bd1b789f2638164bcf2f8698647cb (diff) |
Start a new backend factory API
Using proper class inheritance. Be aware this breaks all backends except null
(and loopback). They will be restored individually in due time.
Diffstat (limited to 'Alc/backends/null.h')
-rw-r--r-- | Alc/backends/null.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Alc/backends/null.h b/Alc/backends/null.h new file mode 100644 index 00000000..e2adfc33 --- /dev/null +++ b/Alc/backends/null.h @@ -0,0 +1,20 @@ +#ifndef BACKENDS_NULL_H +#define BACKENDS_NULL_H + +#include "backends/base.h" + +struct NullBackendFactory 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_NULL_H */ |