diff options
author | Chris Robinson <[email protected]> | 2020-03-30 16:00:02 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-03-30 16:00:02 -0700 |
commit | 662d77159bf9b24b9ef48717547a6d454551bc43 (patch) | |
tree | c68e48139a1d4093cc9f01356e8a5d45161f01db /alc/backends/dsound.cpp | |
parent | f2ddf971df5cbbd112e0d677b0ea5bd6368051dc (diff) |
Get rid of a redundant enum
Diffstat (limited to 'alc/backends/dsound.cpp')
-rw-r--r-- | alc/backends/dsound.cpp | 6 |
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)) |