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/jack.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Alc/backends/jack.cpp') diff --git a/Alc/backends/jack.cpp b/Alc/backends/jack.cpp index 77bbf487..eb96392f 100644 --- a/Alc/backends/jack.cpp +++ b/Alc/backends/jack.cpp @@ -541,8 +541,8 @@ void JackBackendFactory::deinit() #endif } -bool JackBackendFactory::querySupport(ALCbackend_Type type) -{ return (type == ALCbackend_Playback); } +bool JackBackendFactory::querySupport(BackendType type) +{ return (type == BackendType::Playback); } void JackBackendFactory::probe(DevProbe type, std::string *outnames) { @@ -558,9 +558,9 @@ void JackBackendFactory::probe(DevProbe type, std::string *outnames) } } -BackendBase *JackBackendFactory::createBackend(ALCdevice *device, ALCbackend_Type type) +BackendBase *JackBackendFactory::createBackend(ALCdevice *device, BackendType type) { - if(type == ALCbackend_Playback) + if(type == BackendType::Playback) return new JackPlayback{device}; return nullptr; } -- cgit v1.2.3