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/coreaudio.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Alc/backends/coreaudio.cpp') diff --git a/Alc/backends/coreaudio.cpp b/Alc/backends/coreaudio.cpp index f117ea59..f4010631 100644 --- a/Alc/backends/coreaudio.cpp +++ b/Alc/backends/coreaudio.cpp @@ -688,8 +688,8 @@ BackendFactory &CoreAudioBackendFactory::getFactory() bool CoreAudioBackendFactory::init() { return true; } -bool CoreAudioBackendFactory::querySupport(ALCbackend_Type type) -{ return (type == ALCbackend_Playback || ALCbackend_Capture); } +bool CoreAudioBackendFactory::querySupport(BackendType type) +{ return type == BackendType::Playback || type == BackendType::Capture; } void CoreAudioBackendFactory::probe(DevProbe type, std::string *outnames) { @@ -703,11 +703,11 @@ void CoreAudioBackendFactory::probe(DevProbe type, std::string *outnames) } } -BackendBase *CoreAudioBackendFactory::createBackend(ALCdevice *device, ALCbackend_Type type) +BackendBase *CoreAudioBackendFactory::createBackend(ALCdevice *device, BackendType type) { - if(type == ALCbackend_Playback) + if(type == BackendType::Playback) return new CoreAudioPlayback{device}; - if(type == ALCbackend_Capture) + if(type == BackendType::Capture) return new CoreAudioCapture{device}; return nullptr; } -- cgit v1.2.3