aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/backends/dsound.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/backends/dsound.cpp')
-rw-r--r--Alc/backends/dsound.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/Alc/backends/dsound.cpp b/Alc/backends/dsound.cpp
index 44e6fde4..bdb9cf28 100644
--- a/Alc/backends/dsound.cpp
+++ b/Alc/backends/dsound.cpp
@@ -911,8 +911,8 @@ void DSoundBackendFactory::deinit()
#endif
}
-bool DSoundBackendFactory::querySupport(ALCbackend_Type type)
-{ return (type == ALCbackend_Playback || type == ALCbackend_Capture); }
+bool DSoundBackendFactory::querySupport(BackendType type)
+{ return (type == BackendType::Playback || type == BackendType::Capture); }
void DSoundBackendFactory::probe(DevProbe type, std::string *outnames)
{
@@ -949,11 +949,11 @@ void DSoundBackendFactory::probe(DevProbe type, std::string *outnames)
CoUninitialize();
}
-BackendBase *DSoundBackendFactory::createBackend(ALCdevice *device, ALCbackend_Type type)
+BackendBase *DSoundBackendFactory::createBackend(ALCdevice *device, BackendType type)
{
- if(type == ALCbackend_Playback)
+ if(type == BackendType::Playback)
return new DSoundPlayback{device};
- if(type == ALCbackend_Capture)
+ if(type == BackendType::Capture)
return new DSoundCapture{device};
return nullptr;
}