aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/backends/alsa.cpp
diff options
context:
space:
mode:
authorChris Robinson <chris.kcat@gmail.com>2018-12-29 01:38:26 -0800
committerChris Robinson <chris.kcat@gmail.com>2018-12-29 01:38:26 -0800
commit3c637d5fd70e7bdb5dfc79c515359cba3eb0c9af (patch)
treeb053ef719d9854ea9d96429700fddd22f9768e53 /Alc/backends/alsa.cpp
parent8fd44772153c903e47529bde63fce40c56d7277d (diff)
Make the backend type an enum class
Diffstat (limited to 'Alc/backends/alsa.cpp')
-rw-r--r--Alc/backends/alsa.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/Alc/backends/alsa.cpp b/Alc/backends/alsa.cpp
index c5d75fe3..543c2bee 100644
--- a/Alc/backends/alsa.cpp
+++ b/Alc/backends/alsa.cpp
@@ -1266,8 +1266,8 @@ void AlsaBackendFactory::deinit()
#endif
}
-bool AlsaBackendFactory::querySupport(ALCbackend_Type type)
-{ return (type == ALCbackend_Playback || type == ALCbackend_Capture); }
+bool AlsaBackendFactory::querySupport(BackendType type)
+{ return (type == BackendType::Playback || type == BackendType::Capture); }
void AlsaBackendFactory::probe(DevProbe type, std::string *outnames)
{
@@ -1292,11 +1292,11 @@ void AlsaBackendFactory::probe(DevProbe type, std::string *outnames)
}
}
-BackendBase *AlsaBackendFactory::createBackend(ALCdevice *device, ALCbackend_Type type)
+BackendBase *AlsaBackendFactory::createBackend(ALCdevice *device, BackendType type)
{
- if(type == ALCbackend_Playback)
+ if(type == BackendType::Playback)
return new AlsaPlayback{device};
- if(type == ALCbackend_Capture)
+ if(type == BackendType::Capture)
return new AlsaCapture{device};
return nullptr;
}