aboutsummaryrefslogtreecommitdiffstats
path: root/alc/backends/wasapi.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'alc/backends/wasapi.cpp')
-rw-r--r--alc/backends/wasapi.cpp25
1 files changed, 14 insertions, 11 deletions
diff --git a/alc/backends/wasapi.cpp b/alc/backends/wasapi.cpp
index a4d6ea2f..3ee98457 100644
--- a/alc/backends/wasapi.cpp
+++ b/alc/backends/wasapi.cpp
@@ -2741,18 +2741,21 @@ BackendFactory &WasapiBackendFactory::getFactory()
return factory;
}
-alc::EventSupport WasapiBackendFactory::queryEventSupport(alc::EventType eventType, BackendType type)
+alc::EventSupport WasapiBackendFactory::queryEventSupport(alc::EventType eventType, BackendType)
{
- switch(eventType) {
- case alc::EventType::DefaultDeviceChanged: {
- return alc::EventSupport::FullSupport;
- }
- case alc::EventType::DeviceAdded: {
- return alc::EventSupport::FullSupport;
- }
- case alc::EventType::DeviceRemoved: {
- return alc::EventSupport::FullSupport;
- }
+ switch(eventType)
+ {
+ case alc::EventType::DefaultDeviceChanged:
+ return alc::EventSupport::FullSupport;
+
+ case alc::EventType::DeviceAdded:
+ case alc::EventType::DeviceRemoved:
+#if !defined(ALSOFT_UWP)
+ return alc::EventSupport::FullSupport;
+#endif
+
+ case alc::EventType::Count:
+ break;
}
return alc::EventSupport::NoSupport;
}