aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/backends/coreaudio.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-11-15 21:24:09 -0800
committerChris Robinson <[email protected]>2018-11-15 21:24:09 -0800
commitead830814b95f137fa4d51ebf91b353a823f4e30 (patch)
treead11f9312d5e6032831a8b50c823640e8fb2c18e /Alc/backends/coreaudio.h
parentb1fb2e9e142e362ab78c961f8d1069f012b1ece3 (diff)
Convert the CoreAudio backend factory
Diffstat (limited to 'Alc/backends/coreaudio.h')
-rw-r--r--Alc/backends/coreaudio.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/Alc/backends/coreaudio.h b/Alc/backends/coreaudio.h
new file mode 100644
index 00000000..2926ee12
--- /dev/null
+++ b/Alc/backends/coreaudio.h
@@ -0,0 +1,20 @@
+#ifndef BACKENDS_COREAUDIO_H
+#define BACKENDS_COREAUDIO_H
+
+#include "backends/base.h"
+
+struct CoreAudioBackendFactory 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_COREAUDIO_H */