aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/backends/portaudio.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/backends/portaudio.cpp')
-rw-r--r--Alc/backends/portaudio.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/Alc/backends/portaudio.cpp b/Alc/backends/portaudio.cpp
index 34688db9..ae01da70 100644
--- a/Alc/backends/portaudio.cpp
+++ b/Alc/backends/portaudio.cpp
@@ -452,8 +452,8 @@ void PortBackendFactory::deinit()
#endif
}
-bool PortBackendFactory::querySupport(ALCbackend_Type type)
-{ return (type == ALCbackend_Playback || type == ALCbackend_Capture); }
+bool PortBackendFactory::querySupport(BackendType type)
+{ return (type == BackendType::Playback || type == BackendType::Capture); }
void PortBackendFactory::probe(DevProbe type, std::string *outnames)
{
@@ -467,11 +467,11 @@ void PortBackendFactory::probe(DevProbe type, std::string *outnames)
}
}
-BackendBase *PortBackendFactory::createBackend(ALCdevice *device, ALCbackend_Type type)
+BackendBase *PortBackendFactory::createBackend(ALCdevice *device, BackendType type)
{
- if(type == ALCbackend_Playback)
+ if(type == BackendType::Playback)
return new PortPlayback{device};
- if(type == ALCbackend_Capture)
+ if(type == BackendType::Capture)
return new PortCapture{device};
return nullptr;
}