diff options
Diffstat (limited to 'Alc/backends/alsa.cpp')
-rw-r--r-- | Alc/backends/alsa.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Alc/backends/alsa.cpp b/Alc/backends/alsa.cpp index c5d75fe3..543c2bee 100644 --- a/Alc/backends/alsa.cpp +++ b/Alc/backends/alsa.cpp @@ -1266,8 +1266,8 @@ void AlsaBackendFactory::deinit() #endif } -bool AlsaBackendFactory::querySupport(ALCbackend_Type type) -{ return (type == ALCbackend_Playback || type == ALCbackend_Capture); } +bool AlsaBackendFactory::querySupport(BackendType type) +{ return (type == BackendType::Playback || type == BackendType::Capture); } void AlsaBackendFactory::probe(DevProbe type, std::string *outnames) { @@ -1292,11 +1292,11 @@ void AlsaBackendFactory::probe(DevProbe type, std::string *outnames) } } -BackendBase *AlsaBackendFactory::createBackend(ALCdevice *device, ALCbackend_Type type) +BackendBase *AlsaBackendFactory::createBackend(ALCdevice *device, BackendType type) { - if(type == ALCbackend_Playback) + if(type == BackendType::Playback) return new AlsaPlayback{device}; - if(type == ALCbackend_Capture) + if(type == BackendType::Capture) return new AlsaCapture{device}; return nullptr; } |