diff options
Diffstat (limited to 'Alc/backends/sndio.cpp')
-rw-r--r-- | Alc/backends/sndio.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Alc/backends/sndio.cpp b/Alc/backends/sndio.cpp index 2c2397e6..a592632c 100644 --- a/Alc/backends/sndio.cpp +++ b/Alc/backends/sndio.cpp @@ -477,8 +477,8 @@ BackendFactory &SndIOBackendFactory::getFactory() bool SndIOBackendFactory::init() { return true; } -bool SndIOBackendFactory::querySupport(ALCbackend_Type type) -{ return (type == ALCbackend_Playback || type == ALCbackend_Capture); } +bool SndIOBackendFactory::querySupport(BackendType type) +{ return (type == BackendType::Playback || type == BackendType::Capture); } void SndIOBackendFactory::probe(DevProbe type, std::string *outnames) { @@ -492,11 +492,11 @@ void SndIOBackendFactory::probe(DevProbe type, std::string *outnames) } } -BackendBase *SndIOBackendFactory::createBackend(ALCdevice *device, ALCbackend_Type type) +BackendBase *SndIOBackendFactory::createBackend(ALCdevice *device, BackendType type) { - if(type == ALCbackend_Playback) + if(type == BackendType::Playback) return new SndioPlayback{device}; - if(type == ALCbackend_Capture) + if(type == BackendType::Capture) return new SndioCapture{device}; return nullptr; } |