aboutsummaryrefslogtreecommitdiffstats
path: root/alc/backends/wasapi.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-11-25 18:58:00 -0800
committerChris Robinson <[email protected]>2023-11-25 18:58:00 -0800
commit2a27a2ca5ea0f6b6b8fff065212959ea60021647 (patch)
tree0eaa72a89e008f8cc52ca34e9c0a81ae3c601d9c /alc/backends/wasapi.cpp
parent889f2daf1f0453fbbebc7ebba74c58584a335043 (diff)
Fix some unused parameter and unhandled enum warnings
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;
}