aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/backends/loopback.cpp
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/loopback.cpp
parent8fd44772153c903e47529bde63fce40c56d7277d (diff)
Make the backend type an enum class
Diffstat (limited to 'Alc/backends/loopback.cpp')
-rw-r--r--Alc/backends/loopback.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Alc/backends/loopback.cpp b/Alc/backends/loopback.cpp
index 373b11c9..6bce90ff 100644
--- a/Alc/backends/loopback.cpp
+++ b/Alc/backends/loopback.cpp
@@ -64,15 +64,15 @@ void LoopbackBackend::stop()
bool LoopbackBackendFactory::init()
{ return true; }
-bool LoopbackBackendFactory::querySupport(ALCbackend_Type type)
-{ return (type == ALCbackend_Loopback); }
+bool LoopbackBackendFactory::querySupport(BackendType type)
+{ return (type == BackendType::Loopback); }
void LoopbackBackendFactory::probe(DevProbe, std::string*)
{ }
-BackendBase *LoopbackBackendFactory::createBackend(ALCdevice *device, ALCbackend_Type type)
+BackendBase *LoopbackBackendFactory::createBackend(ALCdevice *device, BackendType type)
{
- if(type == ALCbackend_Loopback)
+ if(type == BackendType::Loopback)
new LoopbackBackend{device};
return nullptr;
}