aboutsummaryrefslogtreecommitdiffstats
path: root/alc/backends/pulseaudio.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/pulseaudio.cpp
parent889f2daf1f0453fbbebc7ebba74c58584a335043 (diff)
Fix some unused parameter and unhandled enum warnings
Diffstat (limited to 'alc/backends/pulseaudio.cpp')
-rw-r--r--alc/backends/pulseaudio.cpp18
1 files changed, 10 insertions, 8 deletions
diff --git a/alc/backends/pulseaudio.cpp b/alc/backends/pulseaudio.cpp
index 23ed1415..bebc182d 100644
--- a/alc/backends/pulseaudio.cpp
+++ b/alc/backends/pulseaudio.cpp
@@ -1491,15 +1491,17 @@ BackendFactory &PulseBackendFactory::getFactory()
return factory;
}
-alc::EventSupport PulseBackendFactory::queryEventSupport(alc::EventType eventType, BackendType type)
+alc::EventSupport PulseBackendFactory::queryEventSupport(alc::EventType eventType, BackendType)
{
- switch(eventType) {
- case alc::EventType::DeviceAdded: {
- return alc::EventSupport::FullSupport;
- }
- case alc::EventType::DeviceRemoved: {
- return alc::EventSupport::FullSupport;
- }
+ switch(eventType)
+ {
+ case alc::EventType::DeviceAdded:
+ case alc::EventType::DeviceRemoved:
+ return alc::EventSupport::FullSupport;
+
+ case alc::EventType::DefaultDeviceChanged:
+ case alc::EventType::Count:
+ break;
}
return alc::EventSupport::NoSupport;
}