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/sdl2.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'Alc/backends/sdl2.cpp') diff --git a/Alc/backends/sdl2.cpp b/Alc/backends/sdl2.cpp index 91d1cece..72c2dbcd 100644 --- a/Alc/backends/sdl2.cpp +++ b/Alc/backends/sdl2.cpp @@ -202,10 +202,8 @@ void SDL2BackendFactory::deinit() SDL_QuitSubSystem(SDL_INIT_AUDIO); } -bool SDL2BackendFactory::querySupport(ALCbackend_Type type) -{ - return (type == ALCbackend_Playback); -} +bool SDL2BackendFactory::querySupport(BackendType type) +{ return type == BackendType::Playback; } void SDL2BackendFactory::probe(DevProbe type, std::string *outnames) { @@ -225,9 +223,9 @@ void SDL2BackendFactory::probe(DevProbe type, std::string *outnames) } } -BackendBase *SDL2BackendFactory::createBackend(ALCdevice *device, ALCbackend_Type type) +BackendBase *SDL2BackendFactory::createBackend(ALCdevice *device, BackendType type) { - if(type == ALCbackend_Playback) + if(type == BackendType::Playback) return new Sdl2Backend{device}; return nullptr; } -- cgit v1.2.3