aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/backends/base.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-12-29 01:38:26 -0800
committerChris Robinson <[email protected]>2018-12-29 01:38:26 -0800
commit3c637d5fd70e7bdb5dfc79c515359cba3eb0c9af (patch)
treeb053ef719d9854ea9d96429700fddd22f9768e53 /Alc/backends/base.h
parent8fd44772153c903e47529bde63fce40c56d7277d (diff)
Make the backend type an enum class
Diffstat (limited to 'Alc/backends/base.h')
-rw-r--r--Alc/backends/base.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/Alc/backends/base.h b/Alc/backends/base.h
index b9ea3b61..0fc7de38 100644
--- a/Alc/backends/base.h
+++ b/Alc/backends/base.h
@@ -55,10 +55,10 @@ struct BackendBase {
};
-enum ALCbackend_Type {
- ALCbackend_Playback,
- ALCbackend_Capture,
- ALCbackend_Loopback
+enum class BackendType {
+ Playback,
+ Capture,
+ Loopback
};
@@ -66,11 +66,11 @@ struct BackendFactory {
virtual bool init() = 0;
virtual void deinit() { }
- virtual bool querySupport(ALCbackend_Type type) = 0;
+ virtual bool querySupport(BackendType type) = 0;
virtual void probe(DevProbe type, std::string *outnames) = 0;
- virtual BackendBase *createBackend(ALCdevice *device, ALCbackend_Type type) = 0;
+ virtual BackendBase *createBackend(ALCdevice *device, BackendType type) = 0;
};
#endif /* ALC_BACKENDS_BASE_H */