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/null.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Alc/backends/null.cpp') diff --git a/Alc/backends/null.cpp b/Alc/backends/null.cpp index 33340a5d..480b5554 100644 --- a/Alc/backends/null.cpp +++ b/Alc/backends/null.cpp @@ -153,8 +153,8 @@ void NullBackend::stop() bool NullBackendFactory::init() { return true; } -bool NullBackendFactory::querySupport(ALCbackend_Type type) -{ return (type == ALCbackend_Playback); } +bool NullBackendFactory::querySupport(BackendType type) +{ return (type == BackendType::Playback); } void NullBackendFactory::probe(DevProbe type, std::string *outnames) { @@ -169,9 +169,9 @@ void NullBackendFactory::probe(DevProbe type, std::string *outnames) } } -BackendBase *NullBackendFactory::createBackend(ALCdevice *device, ALCbackend_Type type) +BackendBase *NullBackendFactory::createBackend(ALCdevice *device, BackendType type) { - if(type == ALCbackend_Playback) + if(type == BackendType::Playback) return new NullBackend{device}; return nullptr; } -- cgit v1.2.3