From 3c637d5fd70e7bdb5dfc79c515359cba3eb0c9af Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 29 Dec 2018 01:38:26 -0800 Subject: Make the backend type an enum class --- Alc/backends/wasapi.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Alc/backends/wasapi.cpp') diff --git a/Alc/backends/wasapi.cpp b/Alc/backends/wasapi.cpp index 0d3d067e..ca4bdbd3 100644 --- a/Alc/backends/wasapi.cpp +++ b/Alc/backends/wasapi.cpp @@ -1773,8 +1773,8 @@ void WasapiBackendFactory::deinit() } } -bool WasapiBackendFactory::querySupport(ALCbackend_Type type) -{ return (type == ALCbackend_Playback || type == ALCbackend_Capture); } +bool WasapiBackendFactory::querySupport(BackendType type) +{ return type == BackendType::Playback || type == BackendType::Capture; } void WasapiBackendFactory::probe(DevProbe type, std::string *outnames) { @@ -1810,11 +1810,11 @@ void WasapiBackendFactory::probe(DevProbe type, std::string *outnames) } } -BackendBase *WasapiBackendFactory::createBackend(ALCdevice *device, ALCbackend_Type type) +BackendBase *WasapiBackendFactory::createBackend(ALCdevice *device, BackendType type) { - if(type == ALCbackend_Playback) + if(type == BackendType::Playback) return new WasapiPlayback{device}; - if(type == ALCbackend_Capture) + if(type == BackendType::Capture) return new WasapiCapture{device}; return nullptr; } -- cgit v1.2.3