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.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/alc/backends/dsound.cpp b/alc/backends/dsound.cpp
index abe36e57..e2445cda 100644
--- a/alc/backends/dsound.cpp
+++ b/alc/backends/dsound.cpp
@@ -869,7 +869,7 @@ bool DSoundBackendFactory::init()
bool DSoundBackendFactory::querySupport(BackendType type)
{ return (type == BackendType::Playback || type == BackendType::Capture); }
-std::string DSoundBackendFactory::probe(DevProbe type)
+std::string DSoundBackendFactory::probe(BackendType type)
{
std::string outnames;
auto add_device = [&outnames](const DevMap &entry) -> void
@@ -885,7 +885,7 @@ std::string DSoundBackendFactory::probe(DevProbe type)
HRESULT hrcom{CoInitialize(nullptr)};
switch(type)
{
- case DevProbe::Playback:
+ case BackendType::Playback:
PlaybackDevices.clear();
hr = DirectSoundEnumerateW(DSoundEnumDevices, &PlaybackDevices);
if(FAILED(hr))
@@ -893,7 +893,7 @@ std::string DSoundBackendFactory::probe(DevProbe type)
std::for_each(PlaybackDevices.cbegin(), PlaybackDevices.cend(), add_device);
break;
- case DevProbe::Capture:
+ case BackendType::Capture:
CaptureDevices.clear();
hr = DirectSoundCaptureEnumerateW(DSoundEnumDevices, &CaptureDevices);
if(FAILED(hr))