diff options
author | Chris Robinson <[email protected]> | 2018-11-15 21:14:20 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-11-15 21:14:20 -0800 |
commit | b1fb2e9e142e362ab78c961f8d1069f012b1ece3 (patch) | |
tree | db30a8cecb79dfd64f7857e2bd4b5c1aa53b7fd8 /Alc/backends/wasapi.h | |
parent | e716c7b9889941463deff2d03a318d6be0162c9d (diff) |
Convert the WASAPI backend factory
Diffstat (limited to 'Alc/backends/wasapi.h')
-rw-r--r-- | Alc/backends/wasapi.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Alc/backends/wasapi.h b/Alc/backends/wasapi.h new file mode 100644 index 00000000..2ee10ac8 --- /dev/null +++ b/Alc/backends/wasapi.h @@ -0,0 +1,20 @@ +#ifndef BACKENDS_WASAPI_H +#define BACKENDS_WASAPI_H + +#include "backends/base.h" + +struct WasapiBackendFactory 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_WASAPI_H */ |